You are here

protected function EntityTypeInfoTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php, line 55

Class

EntityTypeInfoTest
@coversDefaultClass \Drupal\content_moderation\EntityTypeInfo

Namespace

Drupal\Tests\content_moderation\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->entityTypeInfo = $this->container
    ->get('class_resolver')
    ->getInstanceFromDefinition(EntityTypeInfo::class);
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->entityFieldManager = $this->container
    ->get('entity_field.manager');
  $this
    ->installConfig([
    'content_moderation',
  ]);
}