You are here

public function ToolbarEventTest::testToolbarEvent in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/toolbar_event_dispatcher/tests/src/Unit/Toolbar/ToolbarEventTest.php \Drupal\Tests\toolbar_event_dispatcher\Unit\Toolbar\ToolbarEventTest::testToolbarEvent()

Test the ToolbarAlterEvent.

File

modules/toolbar_event_dispatcher/tests/src/Unit/Toolbar/ToolbarEventTest.php, line 41

Class

ToolbarEventTest
Class ToolbarEventTest.

Namespace

Drupal\Tests\toolbar_event_dispatcher\Unit\Toolbar

Code

public function testToolbarEvent() : void {
  toolbar_event_dispatcher_toolbar();
  $event = $this->manager
    ->getRegisteredEvent(HookEventDispatcherInterface::TOOLBAR);
  self::assertInstanceOf(ToolbarEvent::class, $event);
}