commit 0a018e2727d62e29599bfc8573dfbe50a2225f6a Author: Erik Stielstra Date: Sat Sep 28 10:08:44 2013 +0200 #4 diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php index 460b5f7..8cd217b 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php @@ -59,7 +59,6 @@ function testStandalonePoFile() { // The import should have created 8 strings. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 8, '%update' => 0, '%delete' => 0)), 'The translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); // This import should have saved plural forms to have 2 variants. $locale_plurals = \Drupal::state()->get('locale.translation.plurals') ?: array(); @@ -76,7 +75,6 @@ function testStandalonePoFile() { // The import should have created 1 string and rejected 2. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 1, '%update' => 0, '%delete' => 0)), 'The translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); $skip_message = format_plural(2, 'One translation string was skipped because of disallowed or malformed HTML. See the log for details.', '@count translation strings were skipped because of disallowed or malformed HTML. See the log for details.', array('@url' => url('admin/reports/dblog'))); $this->assertRaw($skip_message, 'Unsafe strings were skipped.'); @@ -107,7 +105,6 @@ function testStandalonePoFile() { // The import should have created 1 string. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 1, '%update' => 0, '%delete' => 0)), 'The translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); // Ensure string wasn't overwritten. $search = array( 'string' => 'Montag', @@ -130,7 +127,6 @@ function testStandalonePoFile() { // The import should have updated 2 strings. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 0, '%update' => 2, '%delete' => 0)), 'The translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); // Ensure string was overwritten. $search = array( 'string' => 'Montag', @@ -151,7 +147,6 @@ function testStandalonePoFile() { // The import should have created 6 strings. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 6, '%update' => 0, '%delete' => 0)), 'The customized translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); // The database should now contain 6 customized strings (two imported // strings are not translated). @@ -168,7 +163,6 @@ function testStandalonePoFile() { // The import should have created 1 string. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 1, '%update' => 0, '%delete' => 0)), 'The customized translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); // Ensure string wasn't overwritten. $search = array( 'string' => 'januari', @@ -188,7 +182,6 @@ function testStandalonePoFile() { // The import should have updated 2 strings. $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 0, '%update' => 2, '%delete' => 0)), 'The customized translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); // Ensure string was overwritten. $search = array( 'string' => 'januari', @@ -225,7 +218,6 @@ function testEmptyMsgstr() { )); $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 1, '%update' => 0, '%delete' => 0)), 'The translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); $this->assertIdentical(t('Operations', array(), array('langcode' => $langcode)), 'Műveletek', 'String imported and translated.'); // Try importing a .po file. @@ -234,7 +226,6 @@ function testEmptyMsgstr() { 'overwrite_options[not_customized]' => TRUE, )); $this->assertRaw(t('One translation file imported. %number translations were added, %update translations were updated and %delete translations were removed.', array('%number' => 0, '%update' => 0, '%delete' => 1)), 'The translation file was successfully imported.'); - $this->assertText(t('No configuration objects have been updated.'), 'No configuration translations updated.'); $str = "Operations"; $search = array(