function InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync()
- 8.9.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync()
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync()
Tests installing from config is not available due to hook_INSTALL().
Overrides InstallerExistingConfigTestBase::testConfigSync
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryProfileHookInstall.php, line 84
Class
- InstallerExistingConfigSyncDirectoryProfileHookInstall
- Verifies that profiles with hook_install() can't be installed from config.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testConfigSync() : void {
$this->assertSession()
->titleEquals('Select an installation profile | Drupal');
$this->assertSession()
->responseNotContains('Use existing configuration');
// Remove the install hook and the option to install from existing
// configuration will be available.
unlink("{$this->siteDirectory}/profiles/{$this->profile}/{$this->profile}.install");
$this->getSession()
->reload();
$this->assertSession()
->titleEquals('Select an installation profile | Drupal');
$this->assertSession()
->responseContains('Use existing configuration');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.