Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
35 // Delete the configuration from active. Don't worry about side effects of | 35 // Delete the configuration from active. Don't worry about side effects of |
36 // deleting config like fields cleaning up field storages. The coming import | 36 // deleting config like fields cleaning up field storages. The coming import |
37 // should recreate everything as necessary. | 37 // should recreate everything as necessary. |
38 $entity->delete(); | 38 $entity->delete(); |
39 $this->configImporter()->reset()->import(); | 39 $this->configImporter()->reset()->import(); |
40 $imported_entity = \Drupal::entityManager()->loadEntityByUuid($entity_type_id, $entity_uuid); | 40 $imported_entity = \Drupal::service('entity.repository')->loadEntityByUuid($entity_type_id, $entity_uuid); |
41 $this->assertIdentical($original_data, $imported_entity->toArray()); | 41 $this->assertIdentical($original_data, $imported_entity->toArray()); |
42 } | 42 } |
43 | 43 |
44 } | 44 } |