function MigrateSystemConfigurationTest::testConfigurationMigration
Same name in this branch
- 11.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::testConfigurationMigration()
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::testConfigurationMigration()
- 9 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::testConfigurationMigration()
- 8.9.x core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::testConfigurationMigration()
- 8.9.x core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::testConfigurationMigration()
- 10 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d6\MigrateSystemConfigurationTest::testConfigurationMigration()
- 10 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php \Drupal\Tests\system\Kernel\Migrate\d7\MigrateSystemConfigurationTest::testConfigurationMigration()
Tests that all expected configuration gets migrated.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Migrate/ d7/ MigrateSystemConfigurationTest.php, line 183
Class
- MigrateSystemConfigurationTest
- Migrates various configuration objects owned by the System module.
Namespace
Drupal\Tests\system\Kernel\Migrate\d7Code
public function testConfigurationMigration() : void {
foreach ($this->expectedConfig as $config_id => $values) {
if ($config_id == 'system.mail') {
$actual = \Drupal::config($config_id)->getRawData();
}
else {
$actual = \Drupal::config($config_id)->get();
}
unset($actual['_core']);
$this->assertSame($values, $actual, $config_id . ' matches expected values.');
}
// The d7_system_authorize migration should not create the system.authorize
// config.
$this->assertTrue($this->config('system.authorize')
->isNew());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.