You are here

protected function BlockContentTranslationUITest::setupBundle in Zircon Profile 8

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

Creates or initializes the bundle date if needed.

Overrides ContentTranslationTestBase::setupBundle

File

core/modules/block_content/src/Tests/BlockContentTranslationUITest.php, line 61
Contains \Drupal\block_content\Tests\BlockContentTranslationUITest.

Class

BlockContentTranslationUITest
Tests the block content translation UI.

Namespace

Drupal\block_content\Tests

Code

protected function setupBundle() {

  // Create the basic bundle since it is provided by standard.
  $bundle = entity_create('block_content_type', array(
    'id' => $this->bundle,
    'label' => $this->bundle,
    'revision' => FALSE,
  ));
  $bundle
    ->save();
}