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