You are here

public function DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 78
Contains \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest.

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