public function PageEventTest::setUp in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/tests/src/Unit/Theme/PageEventTest.php \Drupal\Tests\hook_event_dispatcher\Unit\Page\PageEventTest::setUp()
Sets up the test.
File
- modules/
core_event_dispatcher/ tests/ src/ Unit/ Theme/ PageEventTest.php, line 34
Class
- PageEventTest
- Class PageEventTest.
Namespace
Drupal\Tests\hook_event_dispatcher\Unit\PageCode
public function setUp() : void {
$builder = new ContainerBuilder();
$this->manager = new HookEventDispatcherManagerSpy();
$builder
->set('hook_event_dispatcher.manager', $this->manager);
$builder
->compile();
Drupal::setContainer($builder);
}