public function FileHelperTest::setUp in SVG Upload Sanitizer 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Helper/ FileHelperTest.php, line 45
Class
- FileHelperTest
- Unit test class for the FileHelper class.
Namespace
Drupal\Tests\svg_upload_sanitizer\Unit\HelperCode
public function setUp() {
parent::setUp();
$this->fileSystem = $this
->createMock(FileSystemInterface::class);
$this->logger = new TestLogger();
$this->fileHelper = new FileHelper($this->fileSystem);
$this->fileHelper
->setLogger($this->logger);
}