function InstallerExistingConfigTestBase::testConfigSync
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()
Confirms that the installation installed the configuration correctly.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigTestBase.php, line 151
Class
- InstallerExistingConfigTestBase
- Provides a base class for testing installing from existing configuration.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testConfigSync() : void {
// After installation there is no snapshot and nothing to import.
$change_list = $this->configImporter()
->getStorageComparer()
->getChangelist();
$expected = [
'create' => [],
// The system.mail is changed configuration because the test system
// changes it to ensure that mails are not sent.
'update' => [
'system.mail',
],
'delete' => [],
'rename' => [],
];
$this->assertEquals($expected, $change_list);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.