function BrowserTestBase::getSession

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
  2. 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
  3. 8.9.x 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.

23 calls to BrowserTestBase::getSession()
BrowserWithJavascriptTest::drupalGetWithAlert in core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
Retrieves a Drupal path or an absolute path.
BrowserWithJavascriptTest::testAssertJsCondition in core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
BrowserWithJavascriptTest::testJavascript in core/tests/Drupal/FunctionalJavascriptTests/BrowserWithJavascriptTest.php
ElementsTableSelectTest::testAjax in core/modules/system/tests/src/FunctionalJavascript/Form/ElementsTableSelectTest.php
Tests the presence of ajax functionality for all options.
EntityReferenceWidgetTest::testWidget in core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php
Tests that the Media library's widget works as expected.

... See full list

File

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

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.