ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilQTIPresentationMaterialTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\TestCase;
22
23class ilQTIPresentationMaterialTest extends TestCase
24{
25 public function testConstruct(): void
26 {
27 $this->assertInstanceOf(ilQTIPresentationMaterial::class, new ilQTIPresentationMaterial());
28 }
29
30 public function testAddFlowMat(): void
31 {
32 $flowMat = $this->getMockBuilder(ilQTIFlowMat::class)->disableOriginalConstructor()->getMock();
33 $instance = new ilQTIPresentationMaterial();
34
35 $this->assertEquals(null, $instance->getFlowMat(0));
36 $this->assertEquals(null, $instance->getFlowMat(1));
37
38 $instance->addFlowMat($flowMat);
39
40 $this->assertEquals($flowMat, $instance->getFlowMat(0));
41 $this->assertEquals(null, $instance->getFlowMat(1));
42 }
43}
Class ilQTIPresentationMaterial.