protected function TaxonomyTranslationTestTrait::setupLanguages in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php \Drupal\taxonomy\Tests\TaxonomyTranslationTestTrait::setupLanguages()
Adds additional languages.
2 calls to TaxonomyTranslationTestTrait::setupLanguages()
- TermTranslationBreadcrumbTest::setUp in core/
modules/ taxonomy/ src/ Tests/ TermTranslationBreadcrumbTest.php - Sets up a Drupal site for running functional and integration tests.
- TermTranslationFieldViewTest::setUp in core/
modules/ taxonomy/ src/ Tests/ TermTranslationFieldViewTest.php - Sets up a Drupal site for running functional and integration tests.
File
- core/
modules/ taxonomy/ src/ Tests/ TaxonomyTranslationTestTrait.php, line 60 - Contains \Drupal\taxonomy\Tests\TaxonomyTranslationTestTrait.
Class
- TaxonomyTranslationTestTrait
- Provides common testing base for translated taxonomy terms.
Namespace
Drupal\taxonomy\TestsCode
protected function setupLanguages() {
ConfigurableLanguage::createFromLangcode($this->translateToLangcode)
->save();
$this
->rebuildContainer();
}