function BrowserTestBase::registerSessions

Same name in other branches
  1. 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::registerSessions()
  2. 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::registerSessions()
  3. 10 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 345

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\Tests

Code

protected function registerSessions() {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.