ILIAS  release_8 Revision v8.24
ilTestSkillLevelThresholdXmlParserTest.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 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 $this->testObj->setCurSkillBaseId(12);
63 $this->assertEquals(12, $this->testObj->getCurSkillBaseId());
64 }
65
66 public function testCurSkillTrefId(): void
67 {
68 $this->testObj->setCurSkillTrefId(12);
69 $this->assertEquals(12, $this->testObj->getCurSkillTrefId());
70 }
71
72 public function testCurSkillLevelThreshold(): void
73 {
74 $mock = $this->createMock(ilTestSkillLevelThresholdImport::class);
75 $this->testObj->setCurSkillLevelThreshold($mock);
76 $this->assertEquals($mock, $this->testObj->getCurSkillLevelThreshold());
77 }
78}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...