function DenyNoCacheRoutesTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ PageCache/ DenyNoCacheRoutesTest.php, line 53
Class
- DenyNoCacheRoutesTest
- @coversDefaultClass \Drupal\Core\PageCache\ResponsePolicy\DenyNoCacheRoutes @group PageCache @group Route
Namespace
Drupal\Tests\Core\PageCacheCode
protected function setUp() : void {
parent::setUp();
$this->routeMatch = $this->createMock(RouteMatchInterface::class);
$this->policy = new DenyNoCacheRoutes($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.