You are here

protected function DenyNodePreviewTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 45

Class

DenyNodePreviewTest
@coversDefaultClass \Drupal\node\PageCache\DenyNodePreview @group node

Namespace

Drupal\Tests\node\Unit\PageCache

Code

protected function setUp() : void {
  $this->routeMatch = $this
    ->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
  $this->policy = new DenyNodePreview($this->routeMatch);
  $this->response = new Response();
  $this->request = new Request();
}