You are here

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\Helper

Code

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);
}