commit 64fe66b592022afcb44ed19b7d29d1c7c7f96a9b Author: Joel Pittet Date: Mon Aug 17 18:32:41 2015 -0700 fix diff --git a/core/modules/system/src/Tests/Form/ValidationTest.php b/core/modules/system/src/Tests/Form/ValidationTest.php index 5540c72..d2e31c9 100644 --- a/core/modules/system/src/Tests/Form/ValidationTest.php +++ b/core/modules/system/src/Tests/Form/ValidationTest.php @@ -291,7 +291,8 @@ protected function assertErrorMessages($messages) { // Gather the element for checking the jump link section. $error_links[] = \Drupal::l($message['title'], Url::fromRoute('', [], ['fragment' => 'edit-' . str_replace('_', '-', $message['key']), 'external' => TRUE])); } - $this->assertRaw('1 error has been found:', $error_links); + $top_message = \Drupal::translation()->formatPlural(count($error_links), '1 error has been found:', '@count errors have been found:'); + $this->assertRaw($top_message); $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.'); foreach ($error_links as $link) { $this->assertRaw($link);