You are here

protected function ContentTranslationHandlerTest::setUp in Drupal 10

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

File

core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php, line 73

Class

ContentTranslationHandlerTest
Tests the content translation handler.

Namespace

Drupal\Tests\content_translation\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->state = $this->container
    ->get('state');
  $this->entityTypeBundleInfo = $this->container
    ->get('entity_type.bundle.info');
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->messenger = $this->container
    ->get('messenger');
  $this
    ->installEntitySchema($this->entityTypeId);
  ConfigurableLanguage::createFromLangcode($this->translationLangcode)
    ->save();
}