Definition at line 23 of file ilQTIMaterialTest.php.
◆ testAddMatapplet()
ilQTIMaterialTest::testAddMatapplet |
( |
| ) |
|
Definition at line 46 of file ilQTIMaterialTest.php.
49 $applet = $this->getMockBuilder(ilQTIMatapplet::class)->disableOriginalConstructor()->getMock();
50 $instance->addMatapplet($applet);
51 $this->assertEquals([[
'material' => $applet,
'type' =>
'matapplet']], $instance->materials);
◆ testAddMatimage()
ilQTIMaterialTest::testAddMatimage |
( |
| ) |
|
Definition at line 38 of file ilQTIMaterialTest.php.
41 $image = $this->getMockBuilder(ilQTIMatimage::class)->disableOriginalConstructor()->getMock();
42 $instance->addMatimage($image);
43 $this->assertEquals([[
'material' => $image,
'type' =>
'matimage']], $instance->materials);
◆ testAddMattext()
ilQTIMaterialTest::testAddMattext |
( |
| ) |
|
Definition at line 30 of file ilQTIMaterialTest.php.
33 $text = $this->getMockBuilder(ilQTIMattext::class)->disableOriginalConstructor()->getMock();
34 $instance->addMattext($text);
35 $this->assertEquals([[
'material' => $text,
'type' =>
'mattext']], $instance->materials);
◆ testConstruct()
ilQTIMaterialTest::testConstruct |
( |
| ) |
|
◆ testSetGetFlow()
ilQTIMaterialTest::testSetGetFlow |
( |
| ) |
|
Definition at line 54 of file ilQTIMaterialTest.php.
58 $this->assertEquals(0, $instance->getFlow());
60 $instance->setFlow(8);
61 $this->assertEquals(8, $instance->getFlow());
◆ testSetGetLabel()
ilQTIMaterialTest::testSetGetLabel |
( |
| ) |
|
Definition at line 64 of file ilQTIMaterialTest.php.
References null.
68 $this->assertEquals(
null, $instance->getLabel());
70 $instance->setLabel(
'Some input.');
71 $this->assertEquals(
'Some input.', $instance->getLabel());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
The documentation for this class was generated from the following file: