Unverified Commit 593ded04 authored by alexpott's avatar alexpott

Issue #2973299 by tstoeckler: Add the label of the entity type to the error...

Issue #2973299 by tstoeckler: Add the label of the entity type to the error message when there are outstanding entity changes in UpdatePathTestBase
parent 6f8f239d
......@@ -375,10 +375,10 @@ protected function runUpdates() {
// Ensure that the update hooks updated all entity schema.
$needs_updates = \Drupal::entityDefinitionUpdateManager()->needsUpdates();
if ($needs_updates) {
foreach (\Drupal::entityDefinitionUpdateManager()
->getChangeSummary() as $entity_type_id => $summary) {
foreach (\Drupal::entityDefinitionUpdateManager()->getChangeSummary() as $entity_type_id => $summary) {
$entity_type_label = \Drupal::entityTypeManager()->getDefinition($entity_type_id)->getLabel();
foreach ($summary as $message) {
$this->fail($message);
$this->fail("$entity_type_label: $message");
}
}
// The above calls to `fail()` should prevent this from ever being
......
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