protected function MigrateNodeCompleteTest::setUp in Drupal 9
Same name in this branch
- 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeCompleteTest::setUp()
- 9 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
- 8 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\d6Code
protected function setUp() : void {
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',
]);
}