protected function SubstitutionPluginTest::setUpFilesystem in Linkit 8.5
Sets up the filesystem, so things like the file directory.
Overrides KernelTestBase::setUpFilesystem
File
- tests/
src/ Kernel/ SubstitutionPluginTest.php, line 85
Class
- SubstitutionPluginTest
- Tests the substitution plugins.
Namespace
Drupal\Tests\linkit\KernelCode
protected function setUpFilesystem() {
$public_file_directory = $this->siteDirectory . '/files';
mkdir($this->siteDirectory, 0775);
mkdir($this->siteDirectory . '/files', 0775);
mkdir($this->siteDirectory . '/files/config/' . Settings::get('config_sync_directory'), 0775, TRUE);
$this
->setSetting('file_public_path', $public_file_directory);
$GLOBALS['config_directories'] = [
Settings::get('config_sync_directory') => $this->siteDirectory . '/files/config/sync',
];
}