You are here

public function EntityEventTest::setUp in Hook Event Dispatcher 8.2

Same name in this branch
  1. 8.2 modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventTest.php \Drupal\Tests\preprocess_event_dispatcher\Unit\EntityEventTest::setUp()
  2. 8.2 modules/core_event_dispatcher/tests/src/Unit/Entity/EntityEventTest.php \Drupal\Tests\core_event_dispatcher\Unit\Entity\EntityEventTest::setUp()
Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventTest.php \Drupal\Tests\preprocess_event_dispatcher\Unit\EntityEventTest::setUp()

File

modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventTest.php, line 53

Class

EntityEventTest
Class EntityEventTest.

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