function EntityTranslationTaxonomyAutocompleteTestCase::configureVocabulary in Entity Translation 7
Makes the "Tags" vocabulary translatable.
1 call to EntityTranslationTaxonomyAutocompleteTestCase::configureVocabulary()
- EntityTranslationTaxonomyAutocompleteTestCase::setUp in tests/
entity_translation.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
entity_translation.test, line 1230 - Tests for Entity translation module.
Class
- EntityTranslationTaxonomyAutocompleteTestCase
- Tests for the taxonomy autocomplete translation modes.
Code
function configureVocabulary() {
$edit = array(
'entity_translation_entity_types[taxonomy_term]' => TRUE,
);
$this
->drupalPost('admin/config/regional/entity_translation', $edit, t('Save configuration'));
$edit = array(
'entity_translation_taxonomy' => TRUE,
);
$this
->drupalPost('admin/structure/taxonomy/tags/edit', $edit, t('Save'));
$edit = array(
'enabled' => TRUE,
);
$this
->drupalPost('admin/structure/taxonomy/tags/fields/replace/name', $edit, t('Save settings'));
$edit = array(
'enabled' => TRUE,
);
$this
->drupalPost('admin/structure/taxonomy/tags/fields/replace/description', $edit, t('Save settings'));
}