You are here

public function ViewDataEventTest::setUp in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 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\Views

Code

public function setUp() : void {
  $builder = new ContainerBuilder();
  $this->manager = new HookEventDispatcherManagerSpy();
  $builder
    ->set('hook_event_dispatcher.manager', $this->manager);
  $builder
    ->compile();
  Drupal::setContainer($builder);
}