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