You are here

public function DenyNodePreviewTest::setUp in Zircon Profile 8

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

Class

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

Namespace

Drupal\Tests\node\Unit\PageCache

Code

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