function MigrateSystemConfigurationTest::setUp

Same name in this branch
  1. 9 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::setUp()
Same name in other branches
  1. 8.9.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::setUp()
  3. 10 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::setUp()
  4. 10 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::setUp()
  5. 11.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::setUp()
  6. 11.x core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.