2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -216,7 +216,7 @@ class LocaleImportFunctionalTest extends DrupalWebTestCase {
// The importation should have create 7 strings.
$this->assertRaw(t('The translation was successfully imported. There are %number newly created translated strings, %update strings were updated and %delete strings were removed.',array('%number'=>7,'%update'=>0,'%delete'=>0)),t('The translation file was successfully imported'));
// Try importing a .po file with script.
// Try importing a .po file with invalid tags in the default text group.
@@ -229,6 +229,17 @@ class LocaleImportFunctionalTest extends DrupalWebTestCase {
$skip_message=format_plural(2,'One translation string was skipped because it contains disallowed HTML.','@count translation strings were skipped because they contain disallowed HTML.');
$this->assertRaw($skip_message,t('Unsafe strings were skipped.'));
// Try importing a .po file with invalid tags in a non default text group.
$this->assertRaw(t('The translation was successfully imported. There are %number newly created translated strings, %update strings were updated and %delete strings were removed.',array('%number'=>3,'%update'=>0,'%delete'=>0)),t('The translation file was successfully imported.'));