function ChainResponsePolicyTest::testEmptyChain
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php \Drupal\Tests\Core\PageCache\ChainResponsePolicyTest::testEmptyChain()
- 8.9.x core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php \Drupal\Tests\Core\PageCache\ChainResponsePolicyTest::testEmptyChain()
- 11.x core/tests/Drupal/Tests/Core/PageCache/ChainResponsePolicyTest.php \Drupal\Tests\Core\PageCache\ChainResponsePolicyTest::testEmptyChain()
Asserts that check() returns NULL if the chain is empty.
@covers ::check
File
-
core/
tests/ Drupal/ Tests/ Core/ PageCache/ ChainResponsePolicyTest.php, line 56
Class
- ChainResponsePolicyTest
- @coversDefaultClass \Drupal\Core\PageCache\ChainResponsePolicy @group PageCache
Namespace
Drupal\Tests\Core\PageCacheCode
public function testEmptyChain() : void {
$result = $this->policy
->check($this->response, $this->request);
$this->assertNull($result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.