You are here

protected function FileSystemTempDirectoryTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/File/FileSystemTempDirectoryTest.php \Drupal\KernelTests\Core\File\FileSystemTempDirectoryTest::setUp()
  2. 9 core/tests/Drupal/KernelTests/Core/File/FileSystemTempDirectoryTest.php \Drupal\KernelTests\Core\File\FileSystemTempDirectoryTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/File/FileSystemTempDirectoryTest.php, line 34

Class

FileSystemTempDirectoryTest
Tests for getTempDirectory on FileSystem.

Namespace

Drupal\KernelTests\Core\File

Code

protected function setUp() : void {
  parent::setUp();
  $stream_wrapper_manager = $this->container
    ->get('stream_wrapper_manager');
  $logger = $this->container
    ->get('logger.channel.file');
  $settings = $this->container
    ->get('settings');
  $this->fileSystem = new FileSystem($stream_wrapper_manager, $settings, $logger);
}