public function BrowserTestBase::getSession in Drupal 9
Same name and namespace in other branches
- 8 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.
74 calls to BrowserTestBase::getSession()
- AdminTest::testCompactMode in core/
modules/ system/ tests/ src/ Functional/ System/ AdminTest.php - Tests compact mode.
- AjaxCssTest::testCkeditorAjaxAddCss in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ AjaxCssTest.php - Tests adding style sheets dynamically to CKEditor.
- 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.
File
- core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 478
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
public function getSession($name = NULL) {
return $this->mink
->getSession($name);
}