function InstallerCustomConfigDirectoryCreateTest::prepareEnvironment
Overrides FunctionalTestSetupTrait::prepareEnvironment
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerCustomConfigDirectoryCreateTest.php, line 23
Class
- InstallerCustomConfigDirectoryCreateTest
- Tests the installer when a custom config_directory set up but does not exist.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function prepareEnvironment() {
parent::prepareEnvironment();
// Other directories will be created too.
// This is legacy functionality.
$this->settings['config_directories']['custom'] = (object) [
'value' => $this->publicFilesDirectory . '/config_custom',
'required' => TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.