diff options
Diffstat (limited to 'modules/locale/locale.test')
-rw-r--r-- | modules/locale/locale.test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/locale/locale.test b/modules/locale/locale.test index a710ab25d..afad99f89 100644 --- a/modules/locale/locale.test +++ b/modules/locale/locale.test @@ -635,7 +635,7 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase { $this->assertText(t('No strings available.'), t("Search didn't find the string.")); // Ensure untranslated string appears if searching on 'only untranslated - // strings'. + // strings' in "all" (hasn't been translated to any language). $search = array( 'string' => $name, 'language' => 'all', @@ -645,6 +645,17 @@ class LocaleTranslationFunctionalTest extends DrupalWebTestCase { $this->drupalPost('admin/config/regional/translate/translate', $search, t('Filter')); $this->assertNoText(t('No strings available.'), t('Search found the string.')); + // Ensure untranslated string appears if searching on 'only untranslated + // strings' in the custom language (hasn't been translated to that specific language). + $search = array( + 'string' => $name, + 'language' => $langcode, + 'translation' => 'untranslated', + 'group' => 'all', + ); + $this->drupalPost('admin/config/regional/translate/translate', $search, t('Filter')); + $this->assertNoText(t('No strings available.'), t('Search found the string.')); + // Add translation. // Assume this is the only result, given the random name. $this->clickLink(t('edit')); |