You are here

protected function ContentTranslationTestBase::setupBundle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::setupBundle()

Creates or initializes the bundle date if needed.

3 calls to ContentTranslationTestBase::setupBundle()
CommentTranslationUITest::setupBundle in core/modules/comment/src/Tests/CommentTranslationUITest.php
Creates or initializes the bundle date if needed.
ContentTranslationTestBase::setUp in core/modules/content_translation/src/Tests/ContentTranslationTestBase.php
Sets up a Drupal site for running functional and integration tests.
TermTranslationUITest::setupBundle in core/modules/taxonomy/src/Tests/TermTranslationUITest.php
Creates or initializes the bundle date if needed.
3 methods override ContentTranslationTestBase::setupBundle()
BlockContentTranslationUITest::setupBundle in core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
Creates or initializes the bundle date if needed.
CommentTranslationUITest::setupBundle in core/modules/comment/src/Tests/CommentTranslationUITest.php
Creates or initializes the bundle date if needed.
TermTranslationUITest::setupBundle in core/modules/taxonomy/src/Tests/TermTranslationUITest.php
Creates or initializes the bundle date if needed.

File

core/modules/content_translation/src/Tests/ContentTranslationTestBase.php, line 160
Contains \Drupal\content_translation\Tests\ContentTranslationTestBase.

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;
  }
}