You are here

public function ResponseCspSubscriberTest::testSubscribedEvents in Content-Security-Policy 8

Check that the subscriber listens to the Response event.

@covers ::getSubscribedEvents

File

tests/src/Unit/EventSubscriber/ResponseCspSubscriberTest.php, line 105

Class

ResponseCspSubscriberTest
@coversDefaultClass \Drupal\csp\EventSubscriber\ResponseCspSubscriber @group csp

Namespace

Drupal\Tests\csp\Unit\EventSubscriber

Code

public function testSubscribedEvents() {
  $this
    ->assertArrayHasKey(KernelEvents::RESPONSE, ResponseCspSubscriber::getSubscribedEvents());
}