public function FileInsertHookHandlerTest::testCreate in SVG Upload Sanitizer 8
File
- tests/
src/ Unit/ HookHandler/ FileInsertHookHandlerTest.php, line 20
Class
- FileInsertHookHandlerTest
- Unit test class for the FileInsertHookHandler class.
Namespace
Drupal\Tests\svg_upload_sanitizer\Unit\HookHandlerCode
public function testCreate() {
$container = $this
->createMock(ContainerInterface::class);
$container
->expects($this
->atLeast(2))
->method('get')
->withConsecutive([
'svg_upload_sanitizer.helper.sanitizer',
], [
'svg_upload_sanitizer.helper.file',
])
->willReturnOnConsecutiveCalls($this
->createMock(SanitizerHelper::class), $this
->createMock(FileHelper::class));
$this
->assertInstanceOf(FileInsertHookHandler::class, FileInsertHookHandler::create($container));
}