You are here

protected function EntityRepositoryTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Entity/EntityRepositoryTest.php \Drupal\Tests\Core\Entity\EntityRepositoryTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Entity/EntityRepositoryTest.php, line 49
Contains \Drupal\Tests\Core\Entity\EntityRepositoryTest.

Class

EntityRepositoryTest
@coversDefaultClass \Drupal\Core\Entity\EntityManager @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

protected function setUp() {
  parent::setUp();
  $this->entityTypeManager = $this
    ->prophesize(EntityTypeManagerInterface::class);
  $this->languageManager = $this
    ->prophesize(LanguageManagerInterface::class);
  $this->entityRepository = new EntityRepository($this->entityTypeManager
    ->reveal(), $this->languageManager
    ->reveal());
}