diff --git a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php index d6b03e8df2..b4b2e109ac 100644 --- a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php +++ b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php @@ -194,9 +194,10 @@ public function testNode() { $this->assertSame('21', $term_ref); $this->assertSame('High council', Term::load($term_ref)->getName()); + // The field_vocab_fixed is NULL in the Icelandic translation and since + // that is migrated last all the term references for this field are NULL. $term_ref = $node->get('field_vocab_fixed')->target_id; - $this->assertSame('24', $term_ref); - $this->assertSame('FR - Crewman', Term::load($term_ref)->getName()); + $this->assertNulL($term_ref); $this->assertTrue($node->hasTranslation('is'), "Node 2 has an Icelandic translation"); $translation = $node->getTranslation('is');