You are here

public function LanguageHierarchyBaseTestCase::addLanguages in Language Hierarchy 7

Add required languages.

6 calls to LanguageHierarchyBaseTestCase::addLanguages()
EntityTranslationHierarchyBaseTestCase::setUp in modules/entity_translation_hierarchy/tests/entity_translation_hierarchy.test
Sets up a Drupal site for running functional and integration tests.
LanguageHierarchyI18nStringTranslationWebTestCase::testI18nStringTranslation in tests/language_hierarchy.test
Adds a language and tests i18n_string translation by users with the appropriate permissions.
LanguageHierarchyI18nVariableTranslationWebTestCase::testI18nVariableTranslation in modules/i18n_variable_hierarchy/i18n_variable_hierarchy.test
Test translating a variable, with hierarchy.
LanguageHierarchyI18nVariableTranslationWebTestCase::testVariableUITranslation in modules/i18n_variable_hierarchy/i18n_variable_hierarchy.test
Test translating a variable, with hierarchy.
LanguageHierarchyStringTranslationWebTestCase::testStringTranslation in tests/language_hierarchy.test
Adds a language and tests string translation by users with the appropriate permissions.

... See full list

File

tests/language_hierarchy.test, line 105
Tests for Language Hierarchy module.

Class

LanguageHierarchyBaseTestCase
Base class for Language Hierarchy module tests.

Code

public function addLanguages() {
  foreach ($this->languages as $language) {

    // Add language.
    $this
      ->addLanguage($language['langcode'], $language['parent']);
  }
}