You are here

protected function TaxonomyTranslationTestTrait::setupLanguages in Drupal 8

Same name in this branch
  1. 8 core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php \Drupal\taxonomy\Tests\TaxonomyTranslationTestTrait::setupLanguages()
  2. 8 core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php \Drupal\Tests\taxonomy\Functional\TaxonomyTranslationTestTrait::setupLanguages()

Adds additional languages.

File

core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php, line 60

Class

TaxonomyTranslationTestTrait
Provides common testing base for translated taxonomy terms.

Namespace

Drupal\taxonomy\Tests

Code

protected function setupLanguages() {
  ConfigurableLanguage::createFromLangcode($this->translateToLangcode)
    ->save();
  $this
    ->rebuildContainer();
}