protected function TaxonomyTranslationTestTrait::setupLanguages in Drupal 8
Same name in this branch
- 8 core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php \Drupal\taxonomy\Tests\TaxonomyTranslationTestTrait::setupLanguages()
- 8 core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php \Drupal\Tests\taxonomy\Functional\TaxonomyTranslationTestTrait::setupLanguages()
Same name and namespace in other branches
- 9 core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php \Drupal\Tests\taxonomy\Functional\TaxonomyTranslationTestTrait::setupLanguages()
Adds additional languages.
2 calls to TaxonomyTranslationTestTrait::setupLanguages()
- TermTranslationFieldViewTest::setUp in core/
modules/ taxonomy/ tests/ src/ Functional/ TermTranslationFieldViewTest.php - TermTranslationTest::setUp in core/
modules/ taxonomy/ tests/ src/ Functional/ TermTranslationTest.php
File
- core/
modules/ taxonomy/ tests/ src/ Functional/ TaxonomyTranslationTestTrait.php, line 55
Class
- TaxonomyTranslationTestTrait
- Provides common testing base for translated taxonomy terms.
Namespace
Drupal\Tests\taxonomy\FunctionalCode
protected function setupLanguages() {
ConfigurableLanguage::createFromLangcode($this->translateToLangcode)
->save();
$this
->rebuildContainer();
}