function InstallerCustomConfigDirectoryCreateTest::testInstaller
Verifies that installation succeeded.
@expectedDeprecation Automatic creation of 'custom' configuration directory will be removed from drupal:9.0.0. See https://www.drupal.org/node/3018145.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerCustomConfigDirectoryCreateTest.php, line 38
Class
- InstallerCustomConfigDirectoryCreateTest
- Tests the installer when a custom config_directory set up but does not exist.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testInstaller() {
$this->assertUrl('user/1');
$this->assertResponse(200);
$this->assertDirectoryExists($this->publicFilesDirectory . '/config_custom');
// Ensure the sync directory also exists.
$sync_directory = Settings::get('config_sync_directory');
$this->assertDirectoryExists($sync_directory);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.