You are here

public function WebAssertTest::testAddressEquals in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/tests/WebAssertTest.php \Behat\Mink\Tests\WebAssertTest::testAddressEquals()

File

vendor/behat/mink/tests/WebAssertTest.php, line 31

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

public function testAddressEquals() {
  $this->session
    ->expects($this
    ->exactly(2))
    ->method('getCurrentUrl')
    ->will($this
    ->returnValue('http://example.com/script.php/sub/url?param=true#webapp/nav'));
  $this
    ->assertCorrectAssertion('addressEquals', array(
    '/sub/url#webapp/nav',
  ));
  $this
    ->assertWrongAssertion('addressEquals', array(
    'sub_url',
  ), 'Behat\\Mink\\Exception\\ExpectationException', 'Current page is "/sub/url#webapp/nav", but "sub_url" expected.');
}