You are here

protected function MigrateNodeTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/node/src/Tests/Migrate/d6/MigrateNodeTest.php \Drupal\node\Tests\Migrate\d6\MigrateNodeTest::setUp()
  2. 8 core/modules/node/src/Tests/Migrate/d7/MigrateNodeTest.php \Drupal\node\Tests\Migrate\d7\MigrateNodeTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Tests/Migrate/d7/MigrateNodeTest.php \Drupal\node\Tests\Migrate\d7\MigrateNodeTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/node/src/Tests/Migrate/d7/MigrateNodeTest.php, line 36
Contains \Drupal\node\Tests\Migrate\d7\MigrateNodeTest.

Class

MigrateNodeTest
Tests node migration.

Namespace

Drupal\node\Tests\Migrate\d7

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('comment');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installConfig(static::$modules);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->executeMigrations([
    'd7_user_role',
    'd7_user',
    'd7_node_type',
    'd7_comment_type',
    'd7_field',
    'd7_field_instance',
    'd7_node__test_content_type',
  ]);
}