function MigrateNodeTaxonomyTest::testMigration
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateNodeTaxonomyTest::testMigration()
- 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateNodeTaxonomyTest::testMigration()
- 11.x core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d7\MigrateNodeTaxonomyTest::testMigration()
Tests node migration from Drupal 7 to 8.
File
-
core/
modules/ taxonomy/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeTaxonomyTest.php, line 48
Class
- MigrateNodeTaxonomyTest
- @group taxonomy
Namespace
Drupal\Tests\taxonomy\Kernel\Migrate\d7Code
public function testMigration() : void {
$node = Node::load(2);
$this->assertInstanceOf(NodeInterface::class, $node);
$this->assertEquals(9, $node->field_tags[0]->target_id);
$this->assertEquals(14, $node->field_tags[1]->target_id);
$this->assertEquals(17, $node->field_tags[2]->target_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.