function BrowserTestBase::registerSessions
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::registerSessions()
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::registerSessions()
- 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::registerSessions()
Registers additional Mink sessions.
Tests wishing to use a different driver or change the default driver should override this method.
// Register a new session that uses the MinkPonyDriver.
$pony = new MinkPonyDriver();
$session = new Session($pony);
$this->mink
->registerSession('pony', $session);
1 call to BrowserTestBase::registerSessions()
- BrowserTestBase::initMink in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Initializes Mink sessions.
File
-
core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 349
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
protected function registerSessions() {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.