function DenyPrivateImageStyleDownloadTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::setUp()
  2. 10 core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::setUp()
  3. 11.x core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::setUp()

Overrides UnitTestCase::setUp

File

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

Class

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

Namespace

Drupal\Tests\image\Unit\PageCache

Code

protected function setUp() : void {
    $this->routeMatch = $this->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
    $this->policy = new DenyPrivateImageStyleDownload($this->routeMatch);
    $this->response = new Response();
    $this->request = new Request();
}

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