You are here

public function EntityExtraEventTest::setUp in Hook Event Dispatcher 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/EntityExtra/EntityExtraEventTest.php, line 31

Class

EntityExtraEventTest
Class EntityExtraEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\EntityExtra

Code

public function setUp() {
  $builder = new ContainerBuilder();
  $this->manager = new HookEventDispatcherManagerSpy();
  $builder
    ->set('hook_event_dispatcher.manager', $this->manager);
  $builder
    ->compile();
  \Drupal::setContainer($builder);
}