1 taxonomy.test TaxonomyLanguageFunctionalTest::testVocabularyLanguageInterface()

Create, configure and delete a vocabulary via the user interface.

File

core/modules/taxonomy/tests/taxonomy.test, line 1703
Tests for taxonomy.module.

Class

TaxonomyLanguageFunctionalTest
Tests setting languages for taxonomy.

Code

function testVocabularyLanguageInterface() {
  // Configure the vocabulary.
  $this->backdropGet('admin/structure/taxonomy');
  $this->clickLink(t('Configure'));
  $edit = array();
  $edit['language'] = TAXONOMY_LANGUAGE_ENABLED;
  $this->backdropPost(NULL, $edit, t('Save'));

  // Check vocabulary settings.
  $this->backdropGet('admin/structure/taxonomy');
  $this->clickLink(t('Configure'));
  $this->assertFieldChecked('edit-language', 'Multilingual support is enabled for vocabulary.');
}