diff --git a/core/modules/system/src/Tests/System/UncaughtExceptionTest.php b/core/modules/system/src/Tests/System/UncaughtExceptionTest.php index d882066..e4c9c5c 100644 --- a/core/modules/system/src/Tests/System/UncaughtExceptionTest.php +++ b/core/modules/system/src/Tests/System/UncaughtExceptionTest.php @@ -256,7 +256,8 @@ public function testLoggerException() { // Find fatal error logged to the simpletest error.log $errors = file(\Drupal::root() . '/' . $this->siteDirectory . '/error.log'); - $this->assertIdentical(count($errors), 1, 'Exactly one line logged to the PHP error log'); + $this->assertIdentical(count($errors), 2, 'The error + the error that the logging service is broken has been written to the error log.'); + $this->assertTrue(strpos($errors[0], 'Failed to log error') !== FALSE, 'The error handling logs when an error could not be logged to the logger.'); $expected_path = \Drupal::root() . '/core/modules/system/tests/modules/error_service_test/src/MonkeysInTheControlRoom.php'; $expected_line = 61;