function MigrateTermNodeTranslationTest::setUp

Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeTranslationTest::setUp()
  2. 8.9.x core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeTranslationTest::setUp()
  3. 11.x core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTranslationTest.php \Drupal\Tests\taxonomy\Kernel\Migrate\d6\MigrateTermNodeTranslationTest::setUp()

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTranslationTest.php, line 32

Class

MigrateTermNodeTranslationTest
Upgrade taxonomy term node associations.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate\d6

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('node');
    $this->installConfig([
        'node',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->executeMigration('language');
    $this->executeMigration('d6_node_settings');
    $this->migrateUsers(FALSE);
    $this->migrateFields();
    $this->migrateTaxonomy();
    $this->migrateContent([
        'translations',
    ]);
    // This is a base plugin id and we want to run all derivatives.
    $this->executeMigrations([
        'd6_term_node',
        'd6_term_node_translation',
    ]);
}

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