function BrowserTestBase::getSession

Same name in other branches
  1. 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
  2. 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
  3. 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()

Returns Mink session.

Parameters

string $name: (optional) Name of the session. Defaults to the active session.

Return value

\Behat\Mink\Session The active Mink session object.

81 calls to BrowserTestBase::getSession()
AdminTest::testCompactMode in core/modules/system/tests/src/Functional/System/AdminTest.php
Tests compact mode.
AjaxFormCacheTest::testBlockForms in core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormCacheTest.php
Tests AJAX forms in blocks.
AjaxFormCacheTest::testQueryString in core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormCacheTest.php
Tests AJAX forms on pages with a query string.
AjaxFormImageButtonTest::testAjaxImageButtonKeypressEnter in core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormImageButtonTest.php
Tests image buttons can be operated with the keyboard ENTER key.
AjaxFormImageButtonTest::testAjaxImageButtonKeypressSpace in core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxFormImageButtonTest.php
Tests image buttons can be operated with the keyboard SPACE key.

... See full list

File

core/tests/Drupal/Tests/BrowserTestBase.php, line 470

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\Tests

Code

public function getSession($name = NULL) {
    return $this->mink
        ->getSession($name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.