Skip to content
Snippets Groups Projects
Unverified Commit 593ded04 authored by Alex Pott's avatar Alex Pott
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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