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