diff -u b/tests/src/Kernel/Plugin/migrate/destination/EntityReferenceRevisionsDestinationTest.php b/tests/src/Kernel/Plugin/migrate/destination/EntityReferenceRevisionsDestinationTest.php --- b/tests/src/Kernel/Plugin/migrate/destination/EntityReferenceRevisionsDestinationTest.php +++ b/tests/src/Kernel/Plugin/migrate/destination/EntityReferenceRevisionsDestinationTest.php @@ -184,9 +184,6 @@ * * @dataProvider destinationFieldMappingDataProvider * - * @covers ::getEntity - * @covers ::rollback - * @covers ::rollbackNonTranslation */ public function testDestinationFieldMapping(array $datas) { $this->enableModules(['node', 'field']); @@ -257,14 +254,15 @@ foreach ($data['expected'] as $expected) { $entity = $storage->load($expected['id']); $properties = array_diff_key($expected, array_flip(['id'])); - $nodes = node_load_multiple(); foreach ($properties as $property => $value) { if (is_array($value)) { foreach ($value as $delta => $text) { + $this->assertNotEmpty($entity->{$property}[$delta]->entity, "Entity property $property with $delta is not empty"); $this->assertEquals($text, $entity->{$property}[$delta]->entity->label()); } } else { + $this->assertNotEmpty($entity, $expected[$property] .' is not empty'); $this->assertEquals($expected[$property], $entity->label()); } }