You are here

public function CspSubscriberTest::testSubscribedEvents in Googalytics - Google Analytics 8

Check that the subscriber listens to the Policy Alter event.

@covers ::getSubscribedEvents

File

tests/src/Unit/EventSubscriber/CspSubscriberTest.php, line 48

Class

CspSubscriberTest
Test for Content Security Policy event integration.

Namespace

Drupal\Tests\ga\Unit\EventSubscriber

Code

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