You are here

protected function MigrateDrupal7TestBase::migrateTaxonomyTerms in Drupal 9

Same name and namespace in other branches
  1. 8 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',
  ]);
}