protected function ContentTranslationTestBase::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setUp()
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setUp()
1 method overrides ContentTranslationTestBase::setUp()
- TranslationLinkTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ Views/ TranslationLinkTest.php
File
- core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 85
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this
->setupLanguages();
$this
->setupBundle();
$this
->enableTranslation();
$this
->setupUsers();
$this
->setupTestFields();
$this->manager = $this->container
->get('content_translation.manager');
$this->controller = $this->manager
->getTranslationHandler($this->entityTypeId);
// Rebuild the container so that the new languages are picked up by services
// that hold a list of languages.
$this
->rebuildContainer();
}