protected function ContentTranslationHandlerTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationHandlerTest::setUp()
Overrides KernelTestBase::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\KernelCode
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();
}