Definition at line 24 of file ilQTIMaterialTest.php.
◆ testAddMatapplet()
ilQTIMaterialTest::testAddMatapplet |
( |
| ) |
|
Definition at line 47 of file ilQTIMaterialTest.php.
50 $applet = $this->getMockBuilder(ilQTIMatapplet::class)->disableOriginalConstructor()->getMock();
51 $instance->addMatapplet($applet);
52 $this->assertEquals([[
'material' => $applet,
'type' =>
'matapplet']], $instance->materials);
◆ testAddMatimage()
ilQTIMaterialTest::testAddMatimage |
( |
| ) |
|
Definition at line 39 of file ilQTIMaterialTest.php.
42 $image = $this->getMockBuilder(ilQTIMatimage::class)->disableOriginalConstructor()->getMock();
43 $instance->addMatimage($image);
44 $this->assertEquals([[
'material' => $image,
'type' =>
'matimage']], $instance->materials);
◆ testAddMattext()
ilQTIMaterialTest::testAddMattext |
( |
| ) |
|
Definition at line 31 of file ilQTIMaterialTest.php.
34 $text = $this->getMockBuilder(ilQTIMattext::class)->disableOriginalConstructor()->getMock();
35 $instance->addMattext($text);
36 $this->assertEquals([[
'material' => $text,
'type' =>
'mattext']], $instance->materials);
◆ testConstruct()
ilQTIMaterialTest::testConstruct |
( |
| ) |
|
◆ testSetGetFlow()
ilQTIMaterialTest::testSetGetFlow |
( |
| ) |
|
Definition at line 55 of file ilQTIMaterialTest.php.
59 $this->assertEquals(0, $instance->getFlow());
61 $instance->setFlow(8);
62 $this->assertEquals(8, $instance->getFlow());
◆ testSetGetLabel()
ilQTIMaterialTest::testSetGetLabel |
( |
| ) |
|
Definition at line 65 of file ilQTIMaterialTest.php.
69 $this->assertEquals(null, $instance->getLabel());
71 $instance->setLabel(
'Some input.');
72 $this->assertEquals(
'Some input.', $instance->getLabel());
The documentation for this class was generated from the following file: