ILIAS  release_8 Revision v8.24
ilTestSkillLevelThresholdXmlParserTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilTestSkillLevelThresholdXmlParserTest:
+ Collaboration diagram for ilTestSkillLevelThresholdXmlParserTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testParsingActive ()
 
 testInitSkillLevelThresholdImportList ()
 
 testCurSkillBaseId ()
 
 testCurSkillTrefId ()
 
 testCurSkillLevelThreshold ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 

Private Attributes

ilTestSkillLevelThresholdXmlParser $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestSkillLevelThresholdXmlParserTest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestSkillLevelThresholdXmlParserTest.php.

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdXmlParserTest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilTestSkillLevelThresholdXmlParserTest.php.

29 : void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestSkillLevelThresholdXmlParser();
34 }

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdXmlParserTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestSkillLevelThresholdXmlParserTest.php.

36 : void
37 {
38 $this->assertInstanceOf(ilTestSkillLevelThresholdXmlParser::class, $this->testObj);
39 }

◆ testCurSkillBaseId()

ilTestSkillLevelThresholdXmlParserTest::testCurSkillBaseId ( )

Definition at line 60 of file ilTestSkillLevelThresholdXmlParserTest.php.

60 : void
61 {
62 $this->testObj->setCurSkillBaseId(12);
63 $this->assertEquals(12, $this->testObj->getCurSkillBaseId());
64 }

◆ testCurSkillLevelThreshold()

ilTestSkillLevelThresholdXmlParserTest::testCurSkillLevelThreshold ( )

Definition at line 72 of file ilTestSkillLevelThresholdXmlParserTest.php.

72 : void
73 {
74 $mock = $this->createMock(ilTestSkillLevelThresholdImport::class);
75 $this->testObj->setCurSkillLevelThreshold($mock);
76 $this->assertEquals($mock, $this->testObj->getCurSkillLevelThreshold());
77 }

◆ testCurSkillTrefId()

ilTestSkillLevelThresholdXmlParserTest::testCurSkillTrefId ( )

Definition at line 66 of file ilTestSkillLevelThresholdXmlParserTest.php.

66 : void
67 {
68 $this->testObj->setCurSkillTrefId(12);
69 $this->assertEquals(12, $this->testObj->getCurSkillTrefId());
70 }

◆ testInitSkillLevelThresholdImportList()

ilTestSkillLevelThresholdXmlParserTest::testInitSkillLevelThresholdImportList ( )

Definition at line 50 of file ilTestSkillLevelThresholdXmlParserTest.php.

50 : void
51 {
52 $this->addGlobal_ilDB();
53 $this->testObj->initSkillLevelThresholdImportList();
54 $this->assertInstanceOf(
55 ilTestSkillLevelThresholdImportList::class,
56 $this->testObj->getSkillLevelThresholdImportList()
57 );
58 }

References ilTestBaseTestCase\addGlobal_ilDB().

+ Here is the call graph for this function:

◆ testParsingActive()

ilTestSkillLevelThresholdXmlParserTest::testParsingActive ( )

Definition at line 41 of file ilTestSkillLevelThresholdXmlParserTest.php.

41 : 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 }

Field Documentation

◆ $testObj

ilTestSkillLevelThresholdXmlParser ilTestSkillLevelThresholdXmlParserTest::$testObj
private

Definition at line 27 of file ilTestSkillLevelThresholdXmlParserTest.php.


The documentation for this class was generated from the following file: