function EntityTypeRepositoryTest::setUp

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php, line 52

Class

EntityTypeRepositoryTest
Tests Drupal\Core\Entity\EntityTypeRepository.

Namespace

Drupal\Tests\Core\Entity

Code

protected function setUp() : void {
  parent::setUp();
  $this->entityTypeManager = $this->prophesize(EntityTypeManagerInterface::class);
  $this->entityTypeBundleInfo = $this->prophesize(EntityTypeBundleInfoInterface::class);
  $this->entityTypeRepository = new EntityTypeRepository($this->entityTypeManager
    ->reveal(), $this->entityTypeBundleInfo
    ->reveal());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.