function MigrateVocabularyFieldTest::testVocabularyField

Same name in this branch
  1. 10 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateVocabularyFieldTest::testVocabularyField()
Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateVocabularyFieldTest::testVocabularyField()
  2. 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateVocabularyFieldTest::testVocabularyField()
  3. 11.x core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateVocabularyFieldTest::testVocabularyField()
  4. 11.x core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\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\d6

Code

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.