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