ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
ilQTIMatImageSecurityTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\TestCase
;
22
23
class
ilQTIMatImageSecurityTest
extends
TestCase
24
{
25
public
function
testConstruct
(): void
26
{
27
$this->assertInstanceOf(
28
ilQtiMatImageSecurity::class,
29
new
ilQtiMatImageSecurity
(
30
$this->
image
(),
31
$this->createMock(\
ILIAS
\TestQuestionPool\Questions\Files\QuestionFiles::class)
32
)
33
);
34
}
35
36
private
function
image
():
ilQTIMatimage
37
{
38
$image = $this->getMockBuilder(ilQTIMatimage::class)->disableOriginalConstructor()->getMock();
39
$image->expects(self::exactly(2))->method(
'getRawContent'
)->willReturn(
'Ayayay'
);
40
41
return
$image;
42
}
43
}
ilQtiMatImageSecurity
Definition:
class.ilQtiMatImageSecurity.php:30
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
ilQTIMatImageSecurityTest\testConstruct
testConstruct()
Definition:
ilQTIMatImageSecurityTest.php:25
ilQTIMatimage
Definition:
class.ilQTIMatimage.php:30
ilQTIMatImageSecurityTest\image
image()
Definition:
ilQTIMatImageSecurityTest.php:36
TestCase
ilQTIMatImageSecurityTest
Definition:
ilQTIMatImageSecurityTest.php:23
components
ILIAS
QTI
tests
ilQTIMatImageSecurityTest.php
Generated on Wed Sep 10 2025 15:16:09 for ILIAS by
1.8.13 (using
Doxyfile
)