function ContentTranslationTestBase::setupBundle

Same name in this branch
  1. 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()
Same name in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()
  3. 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()

Creates or initializes the bundle date if needed.

1 call to ContentTranslationTestBase::setupBundle()
ContentTranslationTestBase::setUp in core/modules/content_translation/src/Tests/ContentTranslationTestBase.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/content_translation/src/Tests/ContentTranslationTestBase.php, line 164

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\content_translation\Tests

Code

protected function setupBundle() {
    if (empty($this->bundle)) {
        $this->bundle = $this->entityTypeId;
    }
}

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