protected function BrowserTestBase::initMink in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/BrowserTestBase.php \Drupal\simpletest\BrowserTestBase::initMink()
Initializes Mink sessions.
1 call to BrowserTestBase::initMink()
- BrowserTestBase::setUp in core/
modules/ simpletest/ src/ BrowserTestBase.php
File
- core/
modules/ simpletest/ src/ BrowserTestBase.php, line 222 - Contains \Drupal\simpletest\BrowserTestBase.
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\simpletestCode
protected function initMink() {
$driver = $this
->getDefaultDriverInstance();
$session = new Session($driver);
$this->mink = new Mink();
$this->mink
->registerSession('default', $session);
$this->mink
->setDefaultSessionName('default');
$this
->registerSessions();
return $session;
}