You are here

public function EntityFieldAccessEventTest::setUp in Hook Event Dispatcher 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/EntityField/EntityFieldAccessEventTest.php, line 34

Class

EntityFieldAccessEventTest
Class EntityFieldAccessEventTest.

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\EntityField

Code

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