protected function EntityTranslationTestBase::setupBundle

Creates or initializes the bundle date if needed.

4 calls to EntityTranslationTestBase::setupBundle()
CommentTranslationUITest::setupBundle in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTranslationUITest.php
Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::setupBundle().
EntityTranslationTestBase::setUp in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationTestBase.php
Sets up a Drupal site for running functional and integration tests.
NodeTranslationUITest::setupBundle in drupal/core/modules/node/lib/Drupal/node/Tests/NodeTranslationUITest.php
Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::setupBundle().
TermTranslationUITest::setupBundle in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php
Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::setupBundle().
3 methods override EntityTranslationTestBase::setupBundle()

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationTestBase.php, line 140
Contains \Drupal\entity\Tests\EntityTranslationTestBase.

Class

EntityTranslationTestBase
Tests entity translation workflows.

Namespace

Drupal\translation_entity\Tests

Code

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