You are here

protected function MultigraphUnitTest::setUp in Monitoring 8

Overrides UnitTestCase::setUp

File

modules/multigraph/tests/src/Unit/Entity/MultigraphUnitTest.php, line 29

Class

MultigraphUnitTest
@coversDefaultClass \Drupal\monitoring_multigraph\Entity\Multigraph

Namespace

Drupal\Tests\monitoring_multigraph\Unit\Entity

Code

protected function setUp() {
  $this->entityTypeManager = $this
    ->createMock(EntityTypeManagerInterface::class);
  $container = new ContainerBuilder();
  $container
    ->set('entity_type.manager', $this->entityTypeManager);
  \Drupal::setContainer($container);
}