diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php index 1ba2bda..e962d2c 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleExportTest.php @@ -114,7 +114,7 @@ function testExportTranslation() { // Ensure no customized translations exist in the file. $this->assertNoRaw('msgstr "janvier"', t('French custom translation not present in exported file.')); // Ensure the untranslated strings exist in the file, and with right quotes. - $this->assertRaw($this->getEmptyPoTranslation(), t('Empty string present in exported file.')); + $this->assertRaw($this->getUntranslatedString(), t('Empty string present in exported file.')); } /** @@ -168,7 +168,10 @@ function getCustomPoFile() { EOF; } - function getEmptyPoTranslation() { + /** + * Helper function that returns a .po fragment file with an unstranslated string. + */ + function getUntranslatedString() { return <<< EOF msgid "February" msgstr ""