function EntityTranslationTestCase::disableLanguage in Entity Translation 7
Disable a language which is in the language list.
Parameters
string $langcode: The code of the language to disable, which must exist.
1 call to EntityTranslationTestCase::disableLanguage()
- EntityTranslationTranslationTestCase::setUp in tests/
entity_translation.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
entity_translation.test, line 145 - Tests for Entity translation module.
Class
- EntityTranslationTestCase
- Base class for entity translation module tests.
Code
function disableLanguage($langcode) {
$edit = array(
'enabled[' . $langcode . ']' => FALSE,
);
$this
->drupalPost('admin/config/regional/language', $edit, 'Save configuration');
}