You are here

protected function MigrateSystemConfigurationTest::setUp in Drupal 10

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

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php, line 120

Class

MigrateSystemConfigurationTest
Migrates various configuration objects owned by the System module.

Namespace

Drupal\Tests\system\Kernel\Migrate\d6

Code

protected function setUp() : void {
  parent::setUp();

  // Delete 'site_frontpage' in order to test the migration of a non-existing
  // front page link.
  $this->sourceDatabase
    ->delete('variable')
    ->condition('name', 'site_frontpage')
    ->execute();
  $migrations = [
    'd6_system_cron',
    'd6_system_date',
    'd6_system_file',
    'system_image_gd',
    'system_image',
    'system_logging',
    'system_maintenance',
    'd6_system_performance',
    'system_rss',
    'system_site',
  ];
  $this
    ->executeMigrations($migrations);
}