function InstallerExistingConfigSyncDirectoryProfileHookInstallTest::testConfigSync
Tests installing from config is not available due to hook_INSTALL().
Overrides InstallerConfigDirectoryTestBase::testConfigSync
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryProfileHookInstallTest.php, line 84
Class
- InstallerExistingConfigSyncDirectoryProfileHookInstallTest
- 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.