public function ToolbarAlterEventTest::setUp in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/toolbar_event_dispatcher/tests/src/Unit/Toolbar/ToolbarAlterEventTest.php \Drupal\Tests\toolbar_event_dispatcher\Unit\Toolbar\ToolbarAlterEventTest::setUp()
File
- modules/
toolbar_event_dispatcher/ tests/ src/ Unit/ Toolbar/ ToolbarAlterEventTest.php, line 30
Class
- ToolbarAlterEventTest
- Class ToolbarAlterEventTest.
Namespace
Drupal\Tests\toolbar_event_dispatcher\Unit\ToolbarCode
public function setUp() : void {
$builder = new ContainerBuilder();
$this->manager = new HookEventDispatcherManagerSpy();
$builder
->set('hook_event_dispatcher.manager', $this->manager);
$builder
->compile();
Drupal::setContainer($builder);
}