diff core/modules/config/src/Tests/AssertConfigEntityImportTrait.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/modules/config/src/Tests/AssertConfigEntityImportTrait.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/config/src/Tests/AssertConfigEntityImportTrait.php	Thu May 09 15:33:08 2019 +0100
@@ -37,7 +37,7 @@
     // should recreate everything as necessary.
     $entity->delete();
     $this->configImporter()->reset()->import();
-    $imported_entity = \Drupal::entityManager()->loadEntityByUuid($entity_type_id, $entity_uuid);
+    $imported_entity = \Drupal::service('entity.repository')->loadEntityByUuid($entity_type_id, $entity_uuid);
     $this->assertIdentical($original_data, $imported_entity->toArray());
   }