function MigrateVocabularyFieldTest::testVocabularyField
Tests the Drupal 6 vocabulary-node type association migration.
File
-
core/
modules/ forum/ tests/ src/ Kernel/ Migrate/ d6/ MigrateVocabularyFieldTest.php, line 46
Class
- MigrateVocabularyFieldTest
- Vocabulary field migration.
Namespace
Drupal\Tests\forum\Kernel\Migrate\d6Code
public function testVocabularyField() : void {
// Test that the field exists.
$this->assertEntity('node.field_freetags', 'entity_reference', TRUE, -1);
$this->assertEntity('node.field_trees', 'entity_reference', TRUE, 1);
$this->assertEntity('node.taxonomy_forums', 'entity_reference', TRUE, 1);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.