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