protected function EntityTranslationUITest::setupLanguages

Enables additional languages.

1 call to EntityTranslationUITest::setupLanguages()
EntityTranslationUITest::setUp in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php
Overrides \Drupal\simpletest\WebTestBase::setUp().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php, line 74
Definition of Drupal\entity\Tests\EntityTranslationUITest.

Class

EntityTranslationUITest
Tests the Entity Translation UI.

Namespace

Drupal\translation_entity\Tests

Code

protected function setupLanguages() {
  $this->langcodes = array(
    'it',
    'fr',
  );
  foreach ($this->langcodes as $langcode) {
    language_save(new Language(array(
      'langcode' => $langcode,
    )));
  }
  array_unshift($this->langcodes, language_default()->langcode);
}