function ContentTranslationTestBase::doSetup
Completes preparation for content translation tests.
18 calls to ContentTranslationTestBase::doSetup()
- BlockContentTranslationUITest::setUp in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTranslationUITest.php  - CommentTranslationUITest::setUp in core/
modules/ comment/ tests/ src/ Functional/ CommentTranslationUITest.php  - ContentTestTranslationUITest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTestTranslationUITest.php  - ContentTranslationMetadataFieldsTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationMetadataFieldsTest.php  - ContentTranslationNewTranslationWithExistingRevisionsTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationNewTranslationWithExistingRevisionsTest.php  
File
- 
              core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 88  
Class
- ContentTranslationTestBase
 - Base class for content translation tests.
 
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function doSetup() : void {
  $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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.