You are here

protected function MigrateTermNodeComplete::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeComplete::setUp()
  2. 10 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeComplete::setUp()

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php, line 31

Class

MigrateTermNodeComplete
Upgrade taxonomy term node associations.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate\d6

Code

protected function setUp() {
  parent::setUp();

  // Remove the classic node table made in setup.
  $this
    ->removeNodeMigrateMapTable(NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '6');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installEntitySchema('node');
  $this
    ->executeMigration('language');
  $this
    ->migrateUsers(FALSE);
  $this
    ->migrateFields();
  $this
    ->executeMigrations([
    'd6_node_settings',
    'd6_node_complete',
  ]);
  $this
    ->migrateTaxonomy();

  // This is a base plugin ID and we want to run all derivatives.
  $this
    ->executeMigrations([
    'd6_term_node',
  ]);
}