protected function TermTranslationUITest::setupBundle

Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::setupBundle().

Overrides EntityTranslationTestBase::setupBundle

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php, line 55
Definition of Drupal\taxonomy\Tests\TermTranslationUITest.

Class

TermTranslationUITest
Tests the Term Translation UI.

Namespace

Drupal\taxonomy\Tests

Code

protected function setupBundle() {
  parent::setupBundle();

  // Create a vocabulary.
  $this->vocabulary = entity_create('taxonomy_vocabulary', array(
    'name' => $this->bundle,
    'description' => $this
      ->randomName(),
    'vid' => $this->bundle,
    'langcode' => Language::LANGCODE_NOT_SPECIFIED,
    'weight' => mt_rand(0, 10),
  ));
  $this->vocabulary
    ->save();
}