You are here

public function OtherEventTest::testNotMappingEvent in Hook Event Dispatcher 8

Test a unknown hook.

File

tests/src/Unit/Preprocess/OtherEventTest.php, line 130

Class

OtherEventTest
Class OtherEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess

Code

public function testNotMappingEvent() {
  $this->service
    ->createAndDispatchKnownEvents('NoneExistingHook', $this->variables);
  self::assertSame([], $this->dispatcher
    ->getEvents());
}