You are here

protected function ContentTranslationEntityBundleInfoTest::setUp in Drupal 9

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

Overrides KernelTestBase::setUp

File

core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php, line 48

Class

ContentTranslationEntityBundleInfoTest
Tests the Content Translation bundle info logic.

Namespace

Drupal\Tests\content_translation\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->contentTranslationManager = $this->container
    ->get('content_translation.manager');
  $this->bundleInfo = $this->container
    ->get('entity_type.bundle.info');
  $this
    ->installEntitySchema('entity_test_mul');
  ConfigurableLanguage::createFromLangcode('it')
    ->save();
}