protected function FileSystemTest::setUp in Drupal 10
Same name in this branch
- 10 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::setUp()
- 10 core/tests/Drupal/KernelTests/Core/File/FileSystemTest.php \Drupal\KernelTests\Core\File\FileSystemTest::setUp()
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/File/FileSystemTest.php \Drupal\Tests\Core\File\FileSystemTest::setUp()
- 9 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\FileCode
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);
}