You are here

protected function EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Tests/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php \Drupal\field\Tests\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages()

Adds additional languages.

1 call to EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages()
EntityReferenceFieldTranslatedReferenceViewTest::setUp in core/modules/field/src/Tests/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
Sets up a Drupal site for running functional and integration tests.

File

core/modules/field/src/Tests/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php, line 179
Contains \Drupal\field\Tests\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest.

Class

EntityReferenceFieldTranslatedReferenceViewTest
Tests the translation of entity reference field display on nodes.

Namespace

Drupal\field\Tests\EntityReference

Code

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