You are here

protected function MigrateTermNodeTranslationTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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 29

Class

MigrateTermNodeTranslationTest
Upgrade taxonomy term node associations.

Namespace

Drupal\Tests\taxonomy\Kernel\Migrate\d6

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installConfig([
    'node',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $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',
  ]);
}