function EntityTypeInfoTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::setUp()
  2. 10 core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::setUp()
  3. 11.x 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 <a href="/api/drupal/core%21modules%21content_moderation%21src%21EntityTypeInfo.php/class/EntityTypeInfo/9" title="Manipulates entity type information." class="local">\Drupal\content_moderation\EntityTypeInfo</a>

Namespace

Drupal\Tests\content_moderation\Kernel

Code

protected function setUp() : void {
    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',
    ]);
}

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