ILIAS  release_8 Revision v8.24
ilQTIPresentationMaterialTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22use PHPUnit\Framework\TestCase;
23
24class ilQTIPresentationMaterialTest extends TestCase
25{
26 public function testConstruct(): void
27 {
28 $this->assertInstanceOf(ilQTIPresentationMaterial::class, new ilQTIPresentationMaterial());
29 }
30
31 public function testAddFlowMat(): void
32 {
33 $flowMat = $this->getMockBuilder(ilQTIFlowMat::class)->disableOriginalConstructor()->getMock();
34 $instance = new ilQTIPresentationMaterial();
35
36 $this->assertEquals(null, $instance->getFlowMat(0));
37 $this->assertEquals(null, $instance->getFlowMat(1));
38
39 $instance->addFlowMat($flowMat);
40
41 $this->assertEquals($flowMat, $instance->getFlowMat(0));
42 $this->assertEquals(null, $instance->getFlowMat(1));
43 }
44}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...