You are here

protected function FileSystemTrait::fileSystemSetUp in Acquia Content Hub 8.2

Adjust file system for test.

2 calls to FileSystemTrait::fileSystemSetUp()
FileImportExportTest::setUp in tests/src/Kernel/FileImportExportTest.php
MediaImportExportTest::setUp in tests/src/Kernel/MediaImportExportTest.php

File

tests/src/Kernel/Core/FileSystemTrait.php, line 22

Class

FileSystemTrait
A trait for file system components.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\Core

Code

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');
}