You are here

public function OtherEventTest::setUp in Hook Event Dispatcher 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Preprocess/OtherEventTest.php, line 57

Class

OtherEventTest
Class OtherEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Preprocess

Code

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