You are here

public function LanguageSwitchLinksAlterEventTest::setUp in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/tests/src/Unit/Language/LanguageSwitchLinksAlterEventTest.php \Drupal\Tests\core_event_dispatcher\Unit\Language\LanguageSwitchLinksAlterEventTest::setUp()

Sets up the test.

File

modules/core_event_dispatcher/tests/src/Unit/Language/LanguageSwitchLinksAlterEventTest.php, line 32

Class

LanguageSwitchLinksAlterEventTest
Class LanguageSwitchLinksAlterEventTest.

Namespace

Drupal\Tests\core_event_dispatcher\Unit\Language

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