function DenyNodePreviewTest::setUp
Same name in other branches
- 9 core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::setUp()
- 8.9.x core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::setUp()
- 11.x core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php \Drupal\Tests\node\Unit\PageCache\DenyNodePreviewTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ node/ tests/ src/ Unit/ PageCache/ DenyNodePreviewTest.php, line 50
Class
- DenyNodePreviewTest
- @coversDefaultClass \Drupal\node\PageCache\DenyNodePreview @group node
Namespace
Drupal\Tests\node\Unit\PageCacheCode
protected function setUp() : void {
parent::setUp();
$this->routeMatch = $this->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
$this->policy = new DenyNodePreview($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.