Commit ed5f6378 authored by webchick's avatar webchick

Issue #1922034 by jthorson: Fixed UpgradePathTestBase does not detect 'An...

Issue #1922034 by jthorson: Fixed UpgradePathTestBase does not detect 'An unrecoverable error has occurred' install errors.
parent b056b0e5
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment