Commit 420400cf authored by catch's avatar catch

Issue #2747789 by jhedstrom, pashupathi nath gajawada: Improve UpdatePathTestBase debuggablity

parent 07f5263c
......@@ -374,7 +374,6 @@ protected function runUpdates() {
// Ensure that the update hooks updated all entity schema.
$needs_updates = \Drupal::entityDefinitionUpdateManager()->needsUpdates();
$this->assertFalse($needs_updates, 'After all updates ran, entity schema is up to date.');
if ($needs_updates) {
foreach (\Drupal::entityDefinitionUpdateManager()
->getChangeSummary() as $entity_type_id => $summary) {
......@@ -382,6 +381,9 @@ protected function runUpdates() {
$this->fail($message);
}
}
// The above calls to `fail()` should prevent this from ever being
// called, but it is here in case something goes really wrong.
$this->assertFalse($needs_updates, 'After all updates ran, entity schema is up to date.');
}
}
}
......
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