summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-05-17 11:44:39 (GMT)
committerAlex Pott2018-05-17 12:24:40 (GMT)
commit593ded04f355ff2610cf4205d7dd7fc18ea23603 (patch)
treec36e5d25ea1e0da645443a16373211b0d4ac2f7d
parent6f8f239d8e495715f250d692a6747760cb1e0554 (diff)
Issue #2973299 by tstoeckler: Add the label of the entity type to the error message when there are outstanding entity changes in UpdatePathTestBase
-rw-r--r--core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
index d7d8470..8e192d4 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
@@ -375,10 +375,10 @@ abstract class UpdatePathTestBase extends BrowserTestBase {
// 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