function FileRepositoryTest::setUp
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/FileRepositoryTest.php \Drupal\Tests\file\Kernel\FileRepositoryTest::setUp()
- 11.x core/modules/file/tests/src/Kernel/FileRepositoryTest.php \Drupal\Tests\file\Kernel\FileRepositoryTest::setUp()
Overrides FileManagedUnitTestBase::setUp
File
-
core/
modules/ file/ tests/ src/ Kernel/ FileRepositoryTest.php, line 41
Class
- FileRepositoryTest
- Tests the FileRepository.
Namespace
Drupal\Tests\file\KernelCode
protected function setUp() : void {
parent::setUp();
$this->fileRepository = $this->container
->get('file.repository');
$this->fileSystem = $this->container
->get('file_system');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.