You are here

public function MigrateNodeTaxonomyTest::testMigration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Tests/Migrate/d7/MigrateNodeTaxonomyTest.php \Drupal\taxonomy\Tests\Migrate\d7\MigrateNodeTaxonomyTest::testMigration()

Test node migration from Drupal 7 to 8.

File

core/modules/taxonomy/src/Tests/Migrate/d7/MigrateNodeTaxonomyTest.php, line 76
Contains \Drupal\taxonomy\Tests\Migrate\d7\MigrateNodeTaxonomyTest.

Class

MigrateNodeTaxonomyTest
@group taxonomy

Namespace

Drupal\taxonomy\Tests\Migrate\d7

Code

public function testMigration() {
  $node = Node::load(2);
  $this
    ->assertTrue($node instanceof NodeInterface);
  $this
    ->assertEqual(9, $node->field_tags[0]->target_id);
  $this
    ->assertEqual(14, $node->field_tags[1]->target_id);
  $this
    ->assertEqual(17, $node->field_tags[2]->target_id);
}