protected function TermTranslationUITest::setupBundle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Tests/TermTranslationUITest.php \Drupal\taxonomy\Tests\TermTranslationUITest::setupBundle()
Creates or initializes the bundle date if needed.
Overrides ContentTranslationTestBase::setupBundle
File
- core/
modules/ taxonomy/ src/ Tests/ TermTranslationUITest.php, line 43 - Contains \Drupal\taxonomy\Tests\TermTranslationUITest.
Class
- TermTranslationUITest
- Tests the Term Translation UI.
Namespace
Drupal\taxonomy\TestsCode
protected function setupBundle() {
parent::setupBundle();
// Create a vocabulary.
$this->vocabulary = entity_create('taxonomy_vocabulary', array(
'name' => $this->bundle,
'description' => $this
->randomMachineName(),
'vid' => $this->bundle,
'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
'weight' => mt_rand(0, 10),
));
$this->vocabulary
->save();
}