protected function BrowserTestBase::registerSessions in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::registerSessions()
- 9 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 359
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
protected function registerSessions() {
}