protected function TermTranslationUITest::setupBundle

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

Overrides EntityTranslationUITest::setupBundle

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php, line 57
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(),
    'machine_name' => $this->bundle,
    'langcode' => LANGUAGE_NOT_SPECIFIED,
    'help' => '',
    'weight' => mt_rand(0, 10),
  ));
  $this->vocabulary
    ->save();
}