protected function InstallerExistingConfigSyncDirectoryProfileHookInstall::visitInstaller in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileHookInstall::visitInstaller()
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryProfileHookInstall::visitInstaller()
Visits the interactive installer.
Overrides InstallerTestBase::visitInstaller
File
- core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryProfileHookInstall.php, line 30
Class
- InstallerExistingConfigSyncDirectoryProfileHookInstall
- Verifies that profiles with hook_install() can't be installed from config.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function visitInstaller() {
// Create an .install file with a hook_install() implementation.
$path = $this->siteDirectory . '/profiles/' . $this->profile;
$contents = <<<EOF
<?php
function testing_config_install_multilingual_install() {
}
EOF;
file_put_contents("{$path}/{$this->profile}.install", $contents);
parent::visitInstaller();
}