function MigrateDrupal7TestBase::migrateTaxonomyTerms

Same name in other branches
  1. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateTaxonomyTerms()
  2. 10 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateTaxonomyTerms()
  3. 11.x core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateTaxonomyTerms()

Executes all taxonomy term migrations.

3 calls to MigrateDrupal7TestBase::migrateTaxonomyTerms()
MigrateNodeTaxonomyTest::setUp in core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php
MigrateNodeTest::setUp in core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php
MigrateTaxonomyTermTest::setUp in core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php

File

core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php, line 106

Class

MigrateDrupal7TestBase
Base class for Drupal 7 migration tests.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d7

Code

protected function migrateTaxonomyTerms() {
    $this->installEntitySchema('taxonomy_term');
    $this->migrateFields();
    // Uses executeMigrations() rather than executeMigration() because the
    // former includes all of the migration derivatives, e.g.
    // d7_taxonomy_term:tags.
    $this->executeMigrations([
        'd7_taxonomy_term',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.