You are here

protected function ContentTranslationPendingRevisionTestBase::setupBundle in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationPendingRevisionTestBase::setupBundle()

Creates or initializes the bundle date if needed.

Overrides ContentTranslationTestBase::setupBundle

File

core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php, line 117

Class

ContentTranslationPendingRevisionTestBase
Base class for pending revision translation tests.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function setupBundle() {
  parent::setupBundle();
  $this
    ->createContentType([
    'type' => $this->bundle,
  ]);
  $this
    ->createEditorialWorkflow();
}