function ContentTranslationModuleInstallTest::setUp

Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationModuleInstallTest::setUp()
  2. 10 core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationModuleInstallTest::setUp()
  3. 11.x core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationModuleInstallTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php, line 51

Class

ContentTranslationModuleInstallTest
Tests content translation for modules that provide translatable bundles.

Namespace

Drupal\Tests\content_translation\Kernel

Code

protected function setUp() {
    parent::setUp();
    $this->installEntitySchema('entity_test_with_bundle');
    ConfigurableLanguage::createFromLangcode($this->translationLangcode)
        ->save();
    $this->contentTranslationManager = $this->container
        ->get('content_translation.manager');
}

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