You are here

public function OtherEventTest::setUp in Hook Event Dispatcher 8.2

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

File

modules/preprocess_event_dispatcher/tests/src/Unit/OtherEventTest.php, line 57

Class

OtherEventTest
Class OtherEventTest.

Namespace

Drupal\Tests\preprocess_event_dispatcher\Unit

Code

public function setUp() : void {
  $loader = YamlDefinitionsLoader::getInstance();
  $this->dispatcher = new SpyEventDispatcher();
  $this->service = new PreprocessEventService($this->dispatcher, $loader
    ->getMapper());
  $this->variables = [];
}