public function MigrateTaxonomyVocabularyTest::testTaxonomyVocabulary in Zircon Profile 8
Same name in this branch
- 8 core/modules/taxonomy/src/Tests/Migrate/d6/MigrateTaxonomyVocabularyTest.php \Drupal\taxonomy\Tests\Migrate\d6\MigrateTaxonomyVocabularyTest::testTaxonomyVocabulary()
- 8 core/modules/taxonomy/src/Tests/Migrate/d7/MigrateTaxonomyVocabularyTest.php \Drupal\taxonomy\Tests\Migrate\d7\MigrateTaxonomyVocabularyTest::testTaxonomyVocabulary()
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Tests/Migrate/d7/MigrateTaxonomyVocabularyTest.php \Drupal\taxonomy\Tests\Migrate\d7\MigrateTaxonomyVocabularyTest::testTaxonomyVocabulary()
Tests the Drupal 7 taxonomy vocabularies to Drupal 8 migration.
File
- core/
modules/ taxonomy/ src/ Tests/ Migrate/ d7/ MigrateTaxonomyVocabularyTest.php, line 61 - Contains \Drupal\taxonomy\Tests\Migrate\d7\MigrateTaxonomyVocabularyTest.
Class
- MigrateTaxonomyVocabularyTest
- Migrate taxonomy vocabularies to taxonomy.vocabulary.*.yml.
Namespace
Drupal\taxonomy\Tests\Migrate\d7Code
public function testTaxonomyVocabulary() {
$this
->assertEntity('tags', 'Tags', 'Use tags to group articles on similar topics into categories.', TAXONOMY_HIERARCHY_DISABLED, 0);
$this
->assertEntity('forums', 'Forums', 'Forum navigation vocabulary', TAXONOMY_HIERARCHY_SINGLE, -10);
$this
->assertEntity('test_vocabulary', 'Test Vocabulary', 'This is the vocabulary description', TAXONOMY_HIERARCHY_SINGLE, 0);
}