Skip to content
Snippets Groups Projects
Commit ed5f6378 authored by Angie Byron's avatar Angie Byron
Browse files

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
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment