function DenyPrivateImageStyleDownloadTest::providerPrivateImageStyleDownloadPolicy

Same name and namespace in other branches
  1. 9 core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::providerPrivateImageStyleDownloadPolicy()
  2. 8.9.x core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::providerPrivateImageStyleDownloadPolicy()
  3. 10 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 80

Class

DenyPrivateImageStyleDownloadTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21image%21src%21PageCache%21DenyPrivateImageStyleDownload.php/class/DenyPrivateImageStyleDownload/11.x" title="Cache policy for image preview page." class="local">\Drupal\image\PageCache\DenyPrivateImageStyleDownload</a> @group image

Namespace

Drupal\Tests\image\Unit\PageCache

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.