Skip to content
Snippets Groups Projects
Verified Commit 7b001415 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3002604 by tstoeckler: Improve debuggability of update failures in UpdatePathTestBase

parent de15d044
No related branches found
No related tags found
No related merge requests found
......@@ -296,7 +296,10 @@ protected function runUpdates() {
// Ensure there are no failed updates.
if ($this->checkFailedUpdates) {
$this->assertNoRaw('<strong>' . t('Failed:') . '</strong>');
$failure = $this->cssSelect('.failure');
if ($failure) {
$this->fail('The update failed with the following message: "' . reset($failure)->getText() . '"');
}
// Ensure that there are no pending updates.
foreach (['update', 'post_update'] as $update_type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment