function DenyNoCacheRoutesTest::providerDenyNoCacheRoutesPolicy
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/PageCache/DenyNoCacheRoutesTest.php \Drupal\Tests\Core\PageCache\DenyNoCacheRoutesTest::providerDenyNoCacheRoutesPolicy()
Provides data and expected results for the test method.
Return value
array Data and expected results.
File
-
core/
tests/ Drupal/ Tests/ Core/ PageCache/ DenyNoCacheRoutesTest.php, line 87
Class
Namespace
Drupal\Tests\Core\PageCacheCode
public static function providerDenyNoCacheRoutesPolicy() : array {
$no_cache_route = new Route('', [], [], [
'no_cache' => TRUE,
]);
return [
[
ResponsePolicyInterface::DENY,
$no_cache_route,
],
[
NULL,
new Route(''),
],
[
NULL,
NULL,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.