Definition at line 24 of file ilQTIParserTest.php.
◆ setUp()
ilQTIParserTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 44 of file ilQTIParserTest.php.
44 : void
45 {
49 $DIC[
'ilUser'] = $this->createMock(ilObjUser::class);
50 $DIC[
'lng'] = $this->createMock(ilLanguage::class);
51 }
Customizing of pimple-DIC for ILIAS.
References $DIC.
◆ tearDown()
ilQTIParserTest::tearDown |
( |
| ) |
|
|
protected |
◆ testConstruct()
ilQTIParserTest::testConstruct |
( |
| ) |
|
Definition at line 28 of file ilQTIParserTest.php.
28 : void
29 {
30 $this->assertInstanceOf(ilQTIParser::class,
new ilQTIParser(
'dummy import dir',
'dummy xml file'));
31 }
◆ testSetTestObject()
ilQTIParserTest::testSetTestObject |
( |
| ) |
|
Definition at line 33 of file ilQTIParserTest.php.
33 : void
34 {
36 $test = $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock();
37 $test->expects(self::once())->method(
'getId')->willReturn(
$id);
38 $instance =
new ilQTIParser(
'dummy import dir',
'dummy xml file');
39 $instance->setTestObject($test);
40 $this->assertEquals($test, $instance->tst_object);
41 $this->assertEquals(
$id, $instance->tst_id);
42 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
References $id.
◆ $dic
The documentation for this class was generated from the following file: