You are here

protected function BigPipeTest::assertSessionCookieExists in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/big_pipe/tests/src/Functional/BigPipeTest.php \Drupal\Tests\big_pipe\Functional\BigPipeTest::assertSessionCookieExists()
  2. 9 core/modules/big_pipe/tests/src/Functional/BigPipeTest.php \Drupal\Tests\big_pipe\Functional\BigPipeTest::assertSessionCookieExists()

Asserts whether a session cookie exists or not.

@internal

File

core/modules/big_pipe/tests/src/Functional/BigPipeTest.php, line 466

Class

BigPipeTest
Tests BigPipe's no-JS detection & response delivery (with and without JS).

Namespace

Drupal\Tests\big_pipe\Functional

Code

protected function assertSessionCookieExists(string $expected) : void {
  $this
    ->assertCookieExists($this
    ->getSessionName(), $expected, 'Session');
}