You are here

public function ChainRequestPolicyTest::testEmptyChain in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php \Drupal\Tests\Core\PageCache\ChainRequestPolicyTest::testEmptyChain()

Asserts that check() returns NULL if the chain is empty.

@covers ::check

File

core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php, line 45
Contains \Drupal\Tests\Core\PageCache\ChainRequestPolicyTest.

Class

ChainRequestPolicyTest
@coversDefaultClass \Drupal\Core\PageCache\ChainRequestPolicy @group PageCache

Namespace

Drupal\Tests\Core\PageCache

Code

public function testEmptyChain() {
  $result = $this->policy
    ->check($this->request);
  $this
    ->assertSame(NULL, $result);
}