function MigrateNodeTest::setUp

Same name in this branch
  1. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeTest::setUp()
Same name in other branches
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeTest::setUp()
  2. 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTest::setUp()
  3. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeTest::setUp()
  4. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTest::setUp()
  5. 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeTest::setUp()
  6. 10 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php, line 44

Class

MigrateNodeTest
Tests node migration.

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

protected function setUp() : void {
    parent::setUp();
    $this->fileMigrationSetup();
    $this->installEntitySchema('comment');
    $this->installEntitySchema('taxonomy_term');
    $this->installSchema('comment', [
        'comment_entity_statistics',
    ]);
    $this->installSchema('node', [
        'node_access',
    ]);
    $this->migrateUsers();
    $this->migrateFields();
    $this->migrateTaxonomyTerms();
    $this->executeMigrations([
        'language',
        'd7_language_content_taxonomy_vocabulary_settings',
        'd7_taxonomy_term_localized_translation',
        'd7_taxonomy_term_translation',
        'd7_language_content_settings',
        'd7_comment_field',
        'd7_comment_field_instance',
        'd7_node_translation',
        'd7_node',
        'd7_entity_translation_settings',
        'd7_taxonomy_term_entity_translation',
        'd7_node_entity_translation',
    ]);
}

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