protected function Upgrade6Test::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6Test::setUp()
- 9 core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6Test::setUp()
File
- core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ Upgrade6Test.php, line 44
Class
- Upgrade6Test
- Tests Drupal 6 upgrade using the migrate UI.
Namespace
Drupal\Tests\migrate_drupal_ui\Functional\d6Code
protected function setUp() : void {
parent::setUp();
// @todo remove in https://www.drupal.org/project/drupal/issues/3267040
// Delete the existing content made to test the ID Conflict form. Migrations
// are to be done on a site without content. The test of the ID Conflict
// form is being moved to its own issue which will remove the deletion
// of the created nodes.
// See https://www.drupal.org/project/drupal/issues/3087061.
$this->nodeStorage = $this->container
->get('entity_type.manager')
->getStorage('node');
$this->nodeStorage
->delete($this->nodeStorage
->loadMultiple());
$this
->loadFixture($this
->getModulePath('migrate_drupal') . '/tests/fixtures/drupal6.php');
// @todo Remove this in https://www.drupal.org/node/3267515
\Drupal::service('module_installer')
->uninstall([
'rdf',
]);
}