public function MigrateTermNodeRevisionTest::testTermRevisionNode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Tests/Migrate/d6/MigrateTermNodeRevisionTest.php \Drupal\taxonomy\Tests\Migrate\d6\MigrateTermNodeRevisionTest::testTermRevisionNode()
Tests the Drupal 6 term-node revision association to Drupal 8 migration.
File
- core/
modules/ taxonomy/ src/ Tests/ Migrate/ d6/ MigrateTermNodeRevisionTest.php, line 38 - Contains \Drupal\taxonomy\Tests\Migrate\d6\MigrateTermNodeRevisionTest.
Class
- MigrateTermNodeRevisionTest
- Upgrade taxonomy term node associations.
Namespace
Drupal\taxonomy\Tests\Migrate\d6Code
public function testTermRevisionNode() {
$node = \Drupal::entityManager()
->getStorage('node')
->loadRevision(2);
$this
->assertIdentical(2, count($node->vocabulary_3_i_2_));
$this
->assertIdentical('4', $node->vocabulary_3_i_2_[0]->target_id);
$this
->assertIdentical('5', $node->vocabulary_3_i_2_[1]->target_id);
}