function DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy
Same name in other branches
- 9 core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy()
- 10 core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy()
- 11.x core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy()
Provides data and expected results for the test method.
Return value
array Data and expected results.
File
-
core/
modules/ node/ tests/ src/ Unit/ PageCache/ DenyNodePreviewTest.php, line 73
Class
- DenyNodePreviewTest
- @coversDefaultClass \Drupal\node\PageCache\DenyNodePreview @group node
Namespace
Drupal\Tests\node\Unit\PageCacheCode
public function providerPrivateImageStyleDownloadPolicy() {
return [
[
ResponsePolicyInterface::DENY,
'entity.node.preview',
],
[
NULL,
'some.other.route',
],
[
NULL,
NULL,
],
[
NULL,
FALSE,
],
[
NULL,
TRUE,
],
[
NULL,
new \StdClass(),
],
[
NULL,
[
1,
2,
3,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.