You are here

function Drupali18nConfigTestCase::testEnableLanguages in Internationalization 7

File

./i18n.test, line 456
Base class for Internationalization tests

Class

Drupali18nConfigTestCase

Code

function testEnableLanguages() {

  // A language with two letter code may help too
  $this
    ->addLanguage('pt-br');

  // Disable Italian to test the translation behavior with disabled languages.
  $this
    ->addLanguage('it');
  $edit = array(
    'enabled[it]' => FALSE,
  );
  $this
    ->drupalPost('admin/config/regional/language', $edit, t('Save configuration'));
}