ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestSkillLevelThresholdXmlParserTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestSkillLevelThresholdXmlParser();
34 }
35
37 {
38 $this->assertInstanceOf(ilTestSkillLevelThresholdXmlParser::class, $this->testObj);
39 }
40
41 public function testParsingActive(): void
42 {
43 $this->testObj->setParsingActive(false);
44 $this->assertFalse($this->testObj->isParsingActive());
45
46 $this->testObj->setParsingActive(true);
47 $this->assertTrue($this->testObj->isParsingActive());
48 }
49
51 {
52 $this->addGlobal_ilDB();
53 $this->testObj->initSkillLevelThresholdImportList();
54 $this->assertInstanceOf(
55 ilTestSkillLevelThresholdImportList::class,
56 $this->testObj->getSkillLevelThresholdImportList()
57 );
58 }
59
60 public function testCurSkillBaseId(): void
61 {
62 $curSkillBaseId = 12;
63 $this->testObj->setCurSkillBaseId($curSkillBaseId);
64 $this->assertEquals($curSkillBaseId, $this->testObj->getCurSkillBaseId());
65 }
66
67 public function testCurSkillTrefId(): void
68 {
69 $curSkillTrefId = 12;
70 $this->testObj->setCurSkillTrefId($curSkillTrefId);
71 $this->assertEquals($curSkillTrefId, $this->testObj->getCurSkillTrefId());
72 }
73
74 public function testCurSkillLevelThreshold(): void
75 {
76 $mock = $this->createMock(ilTestSkillLevelThresholdImport::class);
77 $this->testObj->setCurSkillLevelThreshold($mock);
78 $this->assertEquals($mock, $this->testObj->getCurSkillLevelThreshold());
79 }
80}
Class ilTestBaseClass.
Class ilTestSkillLevelThresholdXmlParserTest.