You are here

public function MinkTest::testGetNoDefaultSession in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/tests/MinkTest.php \Behat\Mink\Tests\MinkTest::testGetNoDefaultSession()

File

vendor/behat/mink/tests/MinkTest.php, line 137

Class

MinkTest

Namespace

Behat\Mink\Tests

Code

public function testGetNoDefaultSession() {
  $session1 = $this
    ->getSessionMock();
  $this->mink
    ->registerSession('session_1', $session1);
  $this
    ->setExpectedException('InvalidArgumentException');
  $this->mink
    ->getSession();
}