function MigrateTermNodeComplete::setUp

Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeComplete::setUp()
  2. 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeComplete::setUp()
  3. 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() : void {
    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',
    ]);
}

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