diff --git a/tests/title.test b/tests/title.test index e66d095..fdaab68 100644 --- a/tests/title.test +++ b/tests/title.test @@ -435,6 +435,15 @@ class TitleTranslationTestCase extends DrupalWebTestCase { // Check that legacy fields have the correct values. $this->assertEqual($term->name, $original_values['name'], t('Taxonomy term name correctly stored.')); $this->assertEqual($term->description, $original_values['description'], t('Taxonomy term description correctly stored.')); + + // Saving the Italian translation with English interface language. + $this->drupalPost('taxonomy/term/' . $term->tid . '/edit/' . $translation_langcode, $edit, t('Save')); + $term = $this->termLoad($term->tid); + $this->assertTrue($this->checkFieldValues($term, $translated_values, $translation_langcode, FALSE), t('Taxonomy term translation updated.')); + $this->assertTrue($this->checkFieldValues($term, $original_values, $langcode), t('Taxonomy term original values preserved.')); + // Check that legacy fields have the correct values. + $this->assertEqual($term->name, $original_values['name'], t('Taxonomy term name correctly stored.')); + $this->assertEqual($term->description, $original_values['description'], t('Taxonomy term description correctly stored.')); } /**