You are here

protected function DenyPrivateImageStyleDownloadTest::setUp 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::setUp()
  2. 9 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 45

Class

DenyPrivateImageStyleDownloadTest
@coversDefaultClass \Drupal\image\PageCache\DenyPrivateImageStyleDownload @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();
}