From ed5f637828cf8ddbb9a698684b133b52bd555b6b Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Wed, 27 Feb 2013 21:36:28 -0500
Subject: [PATCH] Issue #1922034 by jthorson: Fixed UpgradePathTestBase does
 not detect 'An unrecoverable error has occurred' install errors.

---
 .../lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php
index 454e3a291c9b..3ee5a9302fce 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php
@@ -245,6 +245,11 @@ protected function performUpgrade($register_errors = TRUE) {
       throw new Exception('POST to update.php to apply pending updates did not return HTTP 200 status.');
     }
 
+    if (!$this->assertNoText(t('An unrecoverable error has occurred.'))) {
+      // Error occured during update process.
+      throw new Exception('POST to update.php to apply pending updates detected an unrecoverable error.');
+    }
+
     // Check for errors during the update process.
     foreach ($this->xpath('//li[@class=:class]', array(':class' => 'failure')) as $element) {
       $message = strip_tags($element->asXML());
-- 
GitLab