public function EntityEventTest::setUp in Hook Event Dispatcher 3.x
Same name in this branch
- 3.x modules/preprocess_event_dispatcher/tests/src/Unit/EntityEventTest.php \Drupal\Tests\preprocess_event_dispatcher\Unit\EntityEventTest::setUp()
- 3.x 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
- 8.2 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\UnitCode
public function setUp() : void {
$loader = YamlDefinitionsLoader::getInstance();
$this->dispatcher = new SpyEventDispatcher();
$this->service = new PreprocessEventService($this->dispatcher, $loader
->getMapper());
}