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