You are here

public function TokenEventTest::setUp in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/tests/src/Unit/Token/TokenEventTest.php \Drupal\Tests\core_event_dispatcher\Unit\Token\TokenEventTest::setUp()

File

modules/core_event_dispatcher/tests/src/Unit/Token/TokenEventTest.php, line 36

Class

TokenEventTest
Class TokenEventTest.

Namespace

Drupal\Tests\core_event_dispatcher\Unit\Token

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);
}