You are here

public function WebAssertTest::testCookieEquals in Zircon Profile 8

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

File

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

Class

WebAssertTest

Namespace

Behat\Mink\Tests

Code

public function testCookieEquals() {
  $this->session
    ->expects($this
    ->any())
    ->method('getCookie')
    ->will($this
    ->returnValueMap(array(
    array(
      'foo',
      'bar',
    ),
    array(
      'bar',
      'baz',
    ),
  )));
  $this
    ->assertCorrectAssertion('cookieEquals', array(
    'foo',
    'bar',
  ));
  $this
    ->assertWrongAssertion('cookieEquals', array(
    'bar',
    'foo',
  ), 'Behat\\Mink\\Exception\\ExpectationException', 'Cookie "bar" value is "baz", but should be "foo".');
}