public function SanitizerHelperTest::setUp in SVG Upload Sanitizer 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Helper/ SanitizerHelperTest.php, line 45
Class
- SanitizerHelperTest
- Unit test class for the SanitizeHelper 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->sanitizerHelper = new SanitizerHelper($this->fileSystem, new Sanitizer());
$this->sanitizerHelper
->setLogger($this->logger);
}