InstallerCustomConfigDirectoryCreateTest.php in Drupal 8
File
core/tests/Drupal/FunctionalTests/Installer/InstallerCustomConfigDirectoryCreateTest.php
View source
<?php
namespace Drupal\FunctionalTests\Installer;
use Drupal\Core\Site\Settings;
class InstallerCustomConfigDirectoryCreateTest extends InstallerTestBase {
protected $defaultTheme = 'stark';
protected function prepareEnvironment() {
parent::prepareEnvironment();
$this->settings['config_directories']['custom'] = (object) [
'value' => $this->publicFilesDirectory . '/config_custom',
'required' => TRUE,
];
}
public function testInstaller() {
$this
->assertUrl('user/1');
$this
->assertResponse(200);
$this
->assertDirectoryExists($this->publicFilesDirectory . '/config_custom');
$sync_directory = Settings::get('config_sync_directory');
$this
->assertDirectoryExists($sync_directory);
}
}