You are here

public function DenyPrivateImageStyleDownloadTest::providerPrivateImageStyleDownloadPolicy in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::providerPrivateImageStyleDownloadPolicy()
  2. 9 core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::providerPrivateImageStyleDownloadPolicy()

Provides data and expected results for the test method.

Return value

array Data and expected results.

File

core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php, line 73

Class

DenyPrivateImageStyleDownloadTest
@coversDefaultClass \Drupal\image\PageCache\DenyPrivateImageStyleDownload @group image

Namespace

Drupal\Tests\image\Unit\PageCache

Code

public function providerPrivateImageStyleDownloadPolicy() {
  return [
    [
      ResponsePolicyInterface::DENY,
      'image.style_private',
    ],
    [
      NULL,
      'some.other.route',
    ],
    [
      NULL,
      NULL,
    ],
    [
      NULL,
      FALSE,
    ],
    [
      NULL,
      TRUE,
    ],
    [
      NULL,
      new \StdClass(),
    ],
    [
      NULL,
      [
        1,
        2,
        3,
      ],
    ],
  ];
}