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()
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigTestBase::testConfigSync()
Confirms that the installation installed the configuration correctly.
7 methods override InstallerExistingConfigTestBase::testConfigSync()
- InstallerExistingConfigMultilingualTest::testConfigSync in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigMultilingualTest.php - Confirms that the installation installed the configuration correctly.
- InstallerExistingConfigNoConfigTest::testConfigSync in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigNoConfigTest.php - Tests that profiles with an empty config/sync directory do not work.
- InstallerExistingConfigNoSystemSiteTest::testConfigSync in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigNoSystemSiteTest.php - Tests that profiles with no system.site do not work.
- InstallerExistingConfigProfileHookInstall::testConfigSync in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigProfileHookInstall.php - Confirms the installation has failed and the expected error is displayed.
- InstallerExistingConfigSyncDirectoryMultilingualTest::testConfigSync in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryMultilingualTest.php - Confirms that the installation installed the configuration correctly.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigTestBase.php, line 137
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.