function EntityRepositoryTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityRepositoryTest.php, line 54
Class
- EntityRepositoryTest
- @coversDefaultClass \Drupal\Core\Entity\EntityRepository[[api-linebreak]] @group Entity
Namespace
Drupal\Tests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
$this->entityTypeManager = $this->prophesize(EntityTypeManagerInterface::class);
$this->languageManager = $this->prophesize(LanguageManagerInterface::class);
$this->contextRepository = $this->prophesize(ContextRepositoryInterface::class);
$this->entityRepository = new EntityRepository($this->entityTypeManager
->reveal(), $this->languageManager
->reveal(), $this->contextRepository
->reveal());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.