public function BrowserTestBase::getSession in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getSession()
- 9 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.
159 calls to BrowserTestBase::getSession()
- AdminTest::testCompactMode in core/
modules/ system/ tests/ src/ Functional/ System/ AdminTest.php - Tests compact mode.
- AjaxCallbacksTest::testDateAjaxCallback in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxCallbacksTest.php - Tests if Ajax callback works on date element.
- AjaxCallbacksTest::testDateTimeAjaxCallback in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxCallbacksTest.php - Tests if Ajax callback works on datetime element.
- 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.
File
- core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 476
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
public function getSession($name = NULL) {
return $this->mink
->getSession($name);
}