public function MinkTest::testRestartSessions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/tests/MinkTest.php \Behat\Mink\Tests\MinkTest::testRestartSessions()
File
- vendor/
behat/ mink/ tests/ MinkTest.php, line 218
Class
Namespace
Behat\Mink\TestsCode
public function testRestartSessions() {
$session1 = $this
->getSessionMock();
$session1
->expects($this
->once())
->method('isStarted')
->will($this
->returnValue(false));
$session1
->expects($this
->never())
->method('restart');
$session2 = $this
->getSessionMock();
$session2
->expects($this
->once())
->method('isStarted')
->will($this
->returnValue(true));
$session2
->expects($this
->once())
->method('restart');
$this->mink
->registerSession('not started', $session1);
$this->mink
->registerSession('started', $session2);
$this->mink
->restartSessions();
}