You are here

public function SessionBasedTempStoreServiceTest::sessionCookieDoesNotExist in Session Based Temporary Storage 8

Checks that session cookie doesn't exist.

Throws

\Behat\Mink\Exception\ExpectationException

1 call to SessionBasedTempStoreServiceTest::sessionCookieDoesNotExist()
SessionBasedTempStoreServiceTest::testGenericBehavior in tests/src/Functional/SessionBasedTempStoreServiceTest.php
User interaction tests for SessionBasedTempStore.

File

tests/src/Functional/SessionBasedTempStoreServiceTest.php, line 71

Class

SessionBasedTempStoreServiceTest
Generic Behavior Tests for the SessionBasedTempStore.

Namespace

Drupal\Tests\session_based_temp_store\Functional

Code

public function sessionCookieDoesNotExist() {
  $name = $this
    ->getSessionName();
  $message = sprintf('Cookie session "%s" exists, but should not be.', $name);
  $this
    ->assertSession()
    ->assert($this
    ->getSession()
    ->getCookie($name) === NULL, $message);
}