public function Fast404EventSubscriberTest::testGetSubscribedEvents in Fast 404 8.2
Same name and namespace in other branches
- 8 tests/src/Unit/Fast404EventSubscriberTest.php \Drupal\Tests\fast404\Unit\Fast404EventSubscriberTest::testGetSubscribedEvents()
Tests event listener registration.
@covers ::getSubscribedEvents
File
- tests/
src/ Unit/ Fast404EventSubscriberTest.php, line 77
Class
- Fast404EventSubscriberTest
- Tests the fast404 event subscriber logic.
Namespace
Drupal\Tests\fast404\UnitCode
public function testGetSubscribedEvents() {
$this
->assertEquals([
'kernel.request' => [
[
'onKernelRequest',
100,
],
],
'kernel.exception' => [
[
'onNotFoundException',
0,
],
],
], Fast404EventSubscriber::getSubscribedEvents());
}