You are here

protected function ModerationInformationTest::getEntityTypeManager in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php \Drupal\Tests\content_moderation\Unit\ModerationInformationTest::getEntityTypeManager()

Returns a mock Entity Type Manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface The mocked entity type manager.

3 calls to ModerationInformationTest::getEntityTypeManager()
ModerationInformationTest::testIsModeratedEntity in core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php
@dataProvider providerWorkflow @covers ::isModeratedEntity
ModerationInformationTest::testIsModeratedEntityType in core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php
@covers ::isModeratedEntityType
ModerationInformationTest::testShouldModerateEntities in core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php
@dataProvider providerWorkflow @covers ::shouldModerateEntitiesOfBundle

File

core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php, line 39

Class

ModerationInformationTest
@coversDefaultClass \Drupal\content_moderation\ModerationInformation @group content_moderation

Namespace

Drupal\Tests\content_moderation\Unit

Code

protected function getEntityTypeManager() {
  $entity_type_manager = $this
    ->prophesize(EntityTypeManagerInterface::class);
  return $entity_type_manager
    ->reveal();
}