Issue #3138795 by quietone, sja112: d6_term_node_revision references non-existent migration
parent
d342a1889c
commit
9ec469a0c6
|
@ -310,7 +310,6 @@ contrained
|
||||||
contribs
|
contribs
|
||||||
controlgroup
|
controlgroup
|
||||||
coord
|
coord
|
||||||
copmplete
|
|
||||||
corefake
|
corefake
|
||||||
coretest
|
coretest
|
||||||
corge
|
corge
|
||||||
|
|
|
@ -12,7 +12,7 @@ process:
|
||||||
-
|
-
|
||||||
plugin: migration_lookup
|
plugin: migration_lookup
|
||||||
migration:
|
migration:
|
||||||
- d6_node_copmplete
|
- d6_node_complete
|
||||||
- d6_node_revision
|
- d6_node_revision
|
||||||
source: vid
|
source: vid
|
||||||
-
|
-
|
||||||
|
|
|
@ -64,4 +64,16 @@ class MigrateTermNodeComplete extends MigrateDrupal6TestBase {
|
||||||
$this->assertSame('3', $node->field_vocabulary_2_i_1_[1]->target_id);
|
$this->assertSame('3', $node->field_vocabulary_2_i_1_[1]->target_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests the Drupal 6 term-node association to Drupal 8 node revisions.
|
||||||
|
*/
|
||||||
|
public function testTermNodeRevision() {
|
||||||
|
$this->executeMigrations(['d6_term_node_revision']);
|
||||||
|
|
||||||
|
$node = \Drupal::entityTypeManager()->getStorage('node')->loadRevision(2001);
|
||||||
|
$this->assertCount(2, $node->field_vocabulary_3_i_2_);
|
||||||
|
$this->assertSame('4', $node->field_vocabulary_3_i_2_[0]->target_id);
|
||||||
|
$this->assertSame('5', $node->field_vocabulary_3_i_2_[1]->target_id);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue