public function Ie9CspSubscriberTest::testSubscribedEvents in Content-Security-Policy 8
Check that the subscriber listens to the Policy Alter event.
@covers ::getSubscribedEvents
File
- tests/
src/ Unit/ EventSubscriber/ Ie9CspSubscriberTest.php, line 54
Class
- Ie9CspSubscriberTest
- @coversDefaultClass \Drupal\csp\EventSubscriber\Ie9CspSubscriber @group csp
Namespace
Drupal\Tests\csp\Unit\EventSubscriberCode
public function testSubscribedEvents() {
$this
->assertArrayHasKey(CspEvents::POLICY_ALTER, CoreCspSubscriber::getSubscribedEvents());
}