ILIAS  release_8 Revision v8.24
ilTestSkillLevelThresholdExporterTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestSkillLevelThresholdExporter();
34 }
35
37 {
38 $this->assertInstanceOf(ilTestSkillLevelThresholdExporter::class, $this->testObj);
39 }
40
41 public function testXmlWriter(): void
42 {
43 $xmlWriter = new ilXmlWriter();
44 $this->testObj->setXmlWriter($xmlWriter);
45 $this->assertEquals($xmlWriter, $this->testObj->getXmlWriter());
46 }
47
48 public function testAssignmentList(): void
49 {
50 $mock = $this->createMock(ilAssQuestionSkillAssignmentList::class);
51 $this->testObj->setAssignmentList($mock);
52 $this->assertEquals($mock, $this->testObj->getAssignmentList());
53 }
54
55 public function testThresholdList(): void
56 {
57 $mock = $this->createMock(ilTestSkillLevelThresholdList::class);
58 $this->testObj->setThresholdList($mock);
59 $this->assertEquals($mock, $this->testObj->getThresholdList());
60 }
61}
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...