protected $entityTypeManager;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->entityTypeManager =
$this->
prophesize(EntityTypeManagerInterface::
class);
$this->entityTypeRepository =
new EntityTypeRepository($this->entityTypeManager->
reveal());
} /**
* Sets up the entity type manager to be tested.
*
* @param \Drupal\Core\Entity\EntityTypeInterface[]|\Prophecy\Prophecy\ProphecyInterface[] $definitions
* (optional) An array of entity type definitions.
*/
protected function setUpEntityTypeDefinitions($definitions =
[]) { foreach ($definitions as $key =>
$entity_type) { // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called