Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
373 } | 373 } |
374 | 374 |
375 // Ensure that the update hooks updated all entity schema. | 375 // Ensure that the update hooks updated all entity schema. |
376 $needs_updates = \Drupal::entityDefinitionUpdateManager()->needsUpdates(); | 376 $needs_updates = \Drupal::entityDefinitionUpdateManager()->needsUpdates(); |
377 if ($needs_updates) { | 377 if ($needs_updates) { |
378 foreach (\Drupal::entityDefinitionUpdateManager() | 378 foreach (\Drupal::entityDefinitionUpdateManager()->getChangeSummary() as $entity_type_id => $summary) { |
379 ->getChangeSummary() as $entity_type_id => $summary) { | 379 $entity_type_label = \Drupal::entityTypeManager()->getDefinition($entity_type_id)->getLabel(); |
380 foreach ($summary as $message) { | 380 foreach ($summary as $message) { |
381 $this->fail($message); | 381 $this->fail("$entity_type_label: $message"); |
382 } | 382 } |
383 } | 383 } |
384 // The above calls to `fail()` should prevent this from ever being | 384 // The above calls to `fail()` should prevent this from ever being |
385 // called, but it is here in case something goes really wrong. | 385 // called, but it is here in case something goes really wrong. |
386 $this->assertFalse($needs_updates, 'After all updates ran, entity schema is up to date.'); | 386 $this->assertFalse($needs_updates, 'After all updates ran, entity schema is up to date.'); |