You are here

protected function MigrateNodeCompleteTest::setUp in Drupal 8

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

Overrides MigrateNodeTestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php, line 40

Class

MigrateNodeCompleteTest
Test class for a complete node migration for Drupal 6.

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

protected function setUp() {
  parent::setUp();
  $this
    ->setUpMigratedFiles();
  $this
    ->createContent();
  $this->nodeStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('node');
  $this->nodeStorage
    ->delete($this->nodeStorage
    ->loadMultiple());
  $this
    ->installSchema('file', [
    'file_usage',
  ]);
  $this
    ->executeMigrations([
    'language',
    'd6_language_content_settings',
    'd6_node_complete',
  ]);
}