You are here

protected function BigPipeTest::performMetaRefresh 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::performMetaRefresh()

Performs a single <meta> refresh explicitly.

This test disables the automatic <meta> refresh checking, each time it is desired that this runs, a test case must explicitly call this.

See also

setUp()

3 calls to BigPipeTest::performMetaRefresh()
BigPipeTest::assertBigPipeNoJsMetaRefreshRedirect in core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
Calls ::performMetaRefresh() and asserts the responses.
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.

File

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

Class

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

Namespace

Drupal\Tests\big_pipe\Functional

Code

protected function performMetaRefresh() {
  $this->maximumMetaRefreshCount = 1;
  $this
    ->checkForMetaRefresh();
  $this->maximumMetaRefreshCount = 0;
  $this->metaRefreshCount = 0;
}