You are here

protected function BigPipeTest::assertBigPipeNoJsCookieExists in Drupal 9

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

Asserts whether a BigPipe no-JS cookie exists or not.

4 calls to BigPipeTest::assertBigPipeNoJsCookieExists()
BigPipeTest::testBigPipe in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe-delivered HTML responses when JavaScript is enabled.
BigPipeTest::testBigPipeMultiOccurrencePlaceholders in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe with a multi-occurrence placeholder.
BigPipeTest::testBigPipeNoJs in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe-delivered HTML responses when JavaScript is disabled.
BigPipeTest::testNoJsDetection in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Tests BigPipe's no-JS detection.

File

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

Class

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

Namespace

Drupal\Tests\big_pipe\Functional

Code

protected function assertBigPipeNoJsCookieExists($expected) {
  $this
    ->assertCookieExists('big_pipe_nojs', $expected, 'BigPipe no-JS');
}