You are here

private function TranslationOperationsFieldPermissionsTest::setUpLanguages in Translation Views 8

Set up languages.

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to TranslationOperationsFieldPermissionsTest::setUpLanguages()
TranslationOperationsFieldPermissionsTest::setUp in tests/src/Functional/TranslationOperationsFieldPermissionsTest.php

File

tests/src/Functional/TranslationOperationsFieldPermissionsTest.php, line 79

Class

TranslationOperationsFieldPermissionsTest
Class TranslationOperationsFieldPermissionsTest.

Namespace

Drupal\Tests\translation_views\Functional

Code

private function setUpLanguages() {
  foreach (self::$langcodes as $langcode) {
    ConfigurableLanguage::createFromLangcode($langcode)
      ->save();
  }
}