You are here

public function Ie9CspSubscriberTest::setUp in Content-Security-Policy 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/EventSubscriber/Ie9CspSubscriberTest.php, line 37

Class

Ie9CspSubscriberTest
@coversDefaultClass \Drupal\csp\EventSubscriber\Ie9CspSubscriber @group csp

Namespace

Drupal\Tests\csp\Unit\EventSubscriber

Code

public function setUp() : void {
  parent::setUp();
  $this->moduleHandler = $this
    ->getMockBuilder(ModuleHandlerInterface::class)
    ->disableOriginalConstructor()
    ->getMock();
  $this->response = $this
    ->getMockBuilder(HtmlResponse::class)
    ->disableOriginalConstructor()
    ->getMock();
}