You are here

public function DenyPrivateImageStyleDownloadTest::setUp in Zircon Profile 8

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

Class

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

Namespace

Drupal\Tests\image\Unit\PageCache

Code

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