function ContentTranslationTestBase::setupBundle

Same name and namespace in other branches
  1. 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 method overrides ContentTranslationTestBase::setupBundle()
MediaTranslationUITest::setupBundle in core/modules/media/tests/src/Functional/MediaTranslationUITest.php
Creates or initializes the bundle date if needed.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php, line 161

Class

ContentTranslationTestBase
Base class for content translation tests.

Namespace

Drupal\Tests\content_translation\Functional

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.