function DenyPrivateImageStyleDownloadTest::setUp
Same name in other branches
- 9 core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::setUp()
- 8.9.x core/modules/image/tests/src/Unit/PageCache/DenyPrivateImageStyleDownloadTest.php \Drupal\Tests\image\Unit\PageCache\DenyPrivateImageStyleDownloadTest::setUp()
- 10 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
Class
- DenyPrivateImageStyleDownloadTest
- @coversDefaultClass \Drupal\image\PageCache\DenyPrivateImageStyleDownload @group image
Namespace
Drupal\Tests\image\Unit\PageCacheCode
protected function setUp() : void {
parent::setUp();
$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.