You are here

public function DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy()
  2. 9 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\PageCache

Code

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,
      ],
    ],
  ];
}