FileSystemTrait.php in Acquia Content Hub 8.2
File
tests/src/Kernel/Core/FileSystemTrait.php
View source
<?php
namespace Drupal\Tests\acquia_contenthub\Kernel\Core;
trait FileSystemTrait {
protected $fileSystem;
protected function fileSystemSetUp() {
$this
->installEntitySchema('file');
$this
->installSchema('file', [
'file_usage',
]);
$this->fileSystem = \Drupal::service('file_system');
if (version_compare(\Drupal::VERSION, '8.8.0', '<')) {
$this->fileSystem
->mkdir('public://2018-12');
}
$this->fileSystem
->mkdir('public://2020-03');
}
}