public function ToolbarEventTest::setUp in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/toolbar_event_dispatcher/tests/src/Unit/Toolbar/ToolbarEventTest.php \Drupal\Tests\toolbar_event_dispatcher\Unit\Toolbar\ToolbarEventTest::setUp()
File
- modules/
toolbar_event_dispatcher/ tests/ src/ Unit/ Toolbar/ ToolbarEventTest.php, line 30
Class
- ToolbarEventTest
- Class ToolbarEventTest.
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);
}