diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php index 17c0ae9..f4d34ac 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleConfigTranslationTest.php @@ -86,10 +86,12 @@ function testConfigTranslation() { $this->assertEqual(count($properties), 1, 'Got the right number of properties with strict translation'); $this->assertEqual($properties['name']->getValue(), $site_name, 'Got the right translation for site name with strict translation'); - // Get non strict translation and check we got all umodified properties. + // Get non strict translation and check we got all unmodified properties. + // Although system.site contains 7 properties, the test system modified + // the site email address, so we get back 4 properties. $translation = $wrapper->getTranslation($langcode, FALSE); $properties = $translation->getProperties(); - $this->assertTrue(count($properties) == 7 && count($translation->get('page')) == 3, 'Got the right number of properties with non strict translation'); + $this->assertTrue(count($properties) == 4 && count($translation->get('page')) == 1, 'Got the right number of properties with non strict translation'); $this->assertEqual($properties['name']->getValue(), $site_name, 'Got the right translation for site name with non strict translation'); // Check the translated site name is displayed.