You are here

protected function FileSystemTest::setUp in Drupal 9

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

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/File/FileSystemTest.php, line 41

Class

FileSystemTest
@coversDefaultClass \Drupal\Core\File\FileSystem

Namespace

Drupal\Tests\Core\File

Code

protected function setUp() : void {
  parent::setUp();
  $settings = new Settings([]);
  $this->streamWrapperManager = $this
    ->createMock(StreamWrapperManagerInterface::class);
  $this->logger = $this
    ->createMock('Psr\\Log\\LoggerInterface');
  $this->fileSystem = new FileSystem($this->streamWrapperManager, $settings, $this->logger);
}