$this->
assertCount(2,
$node->field_vocabulary_2_i_1_
);
$this->
assertSame('2',
$node->field_vocabulary_2_i_1_
[0
]->target_id
);
$this->
assertSame('3',
$node->field_vocabulary_2_i_1_
[1
]->target_id
);
} /**
* Tests that term relationships are ignored for un-migrated nodes.
*/
public function testSkipNonExistentNode() { // Node 2 is migrated by d6_node__story, but we need to pretend that it
// failed, so record that in the map table.
$this->
mockFailure('d6_node:story',
['nid' => 2, 'language' => 'en'
]);
// d6_term_node__2 should skip over node 2 (a.k.a. revision 3) because,
// according to the map table, it failed.
$migration =
$this->
getMigration('d6_term_node:2'
);
$this->
executeMigration($migration);
$this->
assertNull($migration->
getIdMap()->
lookupDestinationIds(['vid' => 3
])[0
][0
]);
}}