You are here

public function EntityBaseFieldInfoAlterEventTest::setUp in Hook Event Dispatcher 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/EntityType/EntityBaseFieldInfoAlterEventTest.php, line 31

Class

EntityBaseFieldInfoAlterEventTest
Class EntityBaseFieldInfoAlterEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\EntityType

Code

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