You are here

public function CookieTest::testHttpOnlyCookieIsDeleted in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Basic/CookieTest.php \Behat\Mink\Tests\Driver\Basic\CookieTest::testHttpOnlyCookieIsDeleted()

File

vendor/behat/mink/driver-testsuite/tests/Basic/CookieTest.php, line 135

Class

CookieTest

Namespace

Behat\Mink\Tests\Driver\Basic

Code

public function testHttpOnlyCookieIsDeleted() {
  $this
    ->getSession()
    ->restart();
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/cookie_page3.php'));
  $this
    ->assertEquals('Has Cookie: false', $this
    ->findById('cookie-status')
    ->getText());
  $this
    ->getSession()
    ->reload();
  $this
    ->assertEquals('Has Cookie: true', $this
    ->findById('cookie-status')
    ->getText());
  $this
    ->getSession()
    ->restart();
  $this
    ->getSession()
    ->visit($this
    ->pathTo('/cookie_page3.php'));
  $this
    ->assertEquals('Has Cookie: false', $this
    ->findById('cookie-status')
    ->getText());
}