public function DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy in Drupal 9
Same name and namespace in other branches
- 8 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,
],
],
];
}