ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestSkillLevelThresholdExporterTest.php
Go to the documentation of this file.
1<?php
2
24{
26
27 protected function setUp(): void
28 {
29 parent::setUp();
30
31 $this->testObj = new ilTestSkillLevelThresholdExporter();
32 }
33
35 {
36 $this->assertInstanceOf(ilTestSkillLevelThresholdExporter::class, $this->testObj);
37 }
38
39 public function testXmlWriter(): void
40 {
41 $xmlWriter = new ilXmlWriter();
42 $this->testObj->setXmlWriter($xmlWriter);
43 $this->assertEquals($xmlWriter, $this->testObj->getXmlWriter());
44 }
45
46 public function testAssignmentList(): void
47 {
48 $mock = $this->createMock(ilAssQuestionSkillAssignmentList::class);
49 $this->testObj->setAssignmentList($mock);
50 $this->assertEquals($mock, $this->testObj->getAssignmentList());
51 }
52
53 public function testThresholdList(): void
54 {
55 $mock = $this->createMock(ilTestSkillLevelThresholdList::class);
56 $this->testObj->setThresholdList($mock);
57 $this->assertEquals($mock, $this->testObj->getThresholdList());
58 }
59}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...