protected function ContentTranslationEntityBundleInfoTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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\KernelCode
protected function setUp() {
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();
}