function BrowserTestBase::getSession
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
- 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.
6 calls to BrowserTestBase::getSession()
- 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.
- BlockFilterTest::testBlockFilter in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ BlockFilterTest.php - Tests block filter.
- BlockFilterTest::testBlockFilter in core/
modules/ block/ tests/ src/ FunctionalJavascript/ BlockFilterTest.php - Tests block filter.
- BrowserTestBase::initFrontPage in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Visits the front page when initializing Mink.
File
-
core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 466
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
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.