You are here

protected function ContentTranslationPendingRevisionTestBase::setupBundle in Drupal 9

Same name and namespace in other branches
  1. 8 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 118

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