You are here

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

Check that the subscriber listens to the Policy Alter event.

@covers ::getSubscribedEvents

File

tests/src/Unit/EventSubscriber/CoreCspSubscriberTest.php, line 76

Class

CoreCspSubscriberTest
@coversDefaultClass \Drupal\csp\EventSubscriber\CoreCspSubscriber @group csp

Namespace

Drupal\Tests\csp\Unit\EventSubscriber

Code

public function testSubscribedEvents() {
  $this
    ->assertArrayHasKey(CspEvents::POLICY_ALTER, CoreCspSubscriber::getSubscribedEvents());
}