You are here

protected function Fast404EventSubscriberTest::setUp in Fast 404 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Fast404EventSubscriberTest.php \Drupal\Tests\fast404\Unit\Fast404EventSubscriberTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Fast404EventSubscriberTest.php, line 30

Class

Fast404EventSubscriberTest
Tests the fast404 event subscriber logic.

Namespace

Drupal\Tests\fast404\Unit

Code

protected function setUp() {
  parent::setUp();
  $kernel = $this
    ->createMock('\\Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $request = new Request();
  $this->event = new GetResponseForExceptionEvent($kernel, $request, HttpKernelInterface::MASTER_REQUEST, new NotFoundHttpException());
}