ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestSkillLevelThresholdImportListTest 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 ilTestSkillLevelThresholdImportListTest:
+ Collaboration diagram for ilTestSkillLevelThresholdImportListTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testAddOriginalSkillTitle ()
 
 testAddOriginalSkillPath ()
 
 testAddSkillLevelThreshold ()
 
 testCurrent ()
 
 testNext ()
 
 testKey ()
 
 testValid ()
 
 testRewind ()
 

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

ilTestSkillLevelThresholdImportList $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 ilTestSkillLevelThresholdImportListTest

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

Definition at line 25 of file ilTestSkillLevelThresholdImportListTest.php.

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdImportListTest::setUp ( )
protected

Definition at line 29 of file ilTestSkillLevelThresholdImportListTest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdImportListTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilTestSkillLevelThresholdImportListTest.php.

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

◆ testAddOriginalSkillPath()

ilTestSkillLevelThresholdImportListTest::testAddOriginalSkillPath ( )

Definition at line 52 of file ilTestSkillLevelThresholdImportListTest.php.

52  : void
53  {
54  $this->testObj->addOriginalSkillPath(17, 15, "test/path");
55 
56  $reflProp = new ReflectionProperty($this->testObj, "originalSkillPaths");
57  $reflProp->setAccessible(true);
58  $value = $reflProp->getValue($this->testObj);
59 
60  $this->assertEquals(["17:15" => "test/path"], $value);
61  }

◆ testAddOriginalSkillTitle()

ilTestSkillLevelThresholdImportListTest::testAddOriginalSkillTitle ( )

Definition at line 41 of file ilTestSkillLevelThresholdImportListTest.php.

41  : void
42  {
43  $this->testObj->addOriginalSkillTitle(17, 15, "Test");
44 
45  $reflProp = new ReflectionProperty($this->testObj, "originalSkillTitles");
46  $reflProp->setAccessible(true);
47  $value = $reflProp->getValue($this->testObj);
48 
49  $this->assertEquals(["17:15" => "Test"], $value);
50  }

◆ testAddSkillLevelThreshold()

ilTestSkillLevelThresholdImportListTest::testAddSkillLevelThreshold ( )

Definition at line 63 of file ilTestSkillLevelThresholdImportListTest.php.

63  : void
64  {
65  $testSkillLevelThresholdImport = new ilTestSkillLevelThresholdImport();
66  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
67 
68  $reflProp = new ReflectionProperty($this->testObj, "importedSkillLevelThresholds");
69  $reflProp->setAccessible(true);
70  $value = $reflProp->getValue($this->testObj);
71 
72  $this->assertEquals([$testSkillLevelThresholdImport], $value);
73  }

◆ testCurrent()

ilTestSkillLevelThresholdImportListTest::testCurrent ( )

Definition at line 75 of file ilTestSkillLevelThresholdImportListTest.php.

75  : void
76  {
77  $testSkillLevelThresholdImport = new ilTestSkillLevelThresholdImport();
78  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
79 
80  $this->assertEquals($testSkillLevelThresholdImport, $this->testObj->current());
81  }

◆ testKey()

ilTestSkillLevelThresholdImportListTest::testKey ( )

Definition at line 95 of file ilTestSkillLevelThresholdImportListTest.php.

95  : void
96  {
97  $testSkillLevelThresholdImport1 = new ilTestSkillLevelThresholdImport();
98  $testSkillLevelThresholdImport2 = new ilTestSkillLevelThresholdImport();
99 
100  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
101  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
102 
103  $this->testObj->next();
104  $this->assertEquals(1, $this->testObj->key());
105  }

◆ testNext()

ilTestSkillLevelThresholdImportListTest::testNext ( )

Definition at line 83 of file ilTestSkillLevelThresholdImportListTest.php.

83  : void
84  {
85  $testSkillLevelThresholdImport1 = new ilTestSkillLevelThresholdImport();
86  $testSkillLevelThresholdImport2 = new ilTestSkillLevelThresholdImport();
87 
88  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
89  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
90 
91  $this->testObj->next();
92  $this->assertEquals($testSkillLevelThresholdImport2, $this->testObj->current());
93  }

◆ testRewind()

ilTestSkillLevelThresholdImportListTest::testRewind ( )

Definition at line 119 of file ilTestSkillLevelThresholdImportListTest.php.

119  : void
120  {
121  $testSkillLevelThresholdImport1 = new ilTestSkillLevelThresholdImport();
122  $testSkillLevelThresholdImport2 = new ilTestSkillLevelThresholdImport();
123 
124  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
125  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
126 
127  $this->testObj->next();
128  $this->testObj->next();
129  $this->testObj->rewind();
130  $this->assertEquals($testSkillLevelThresholdImport1, $this->testObj->current());
131  }

◆ testValid()

ilTestSkillLevelThresholdImportListTest::testValid ( )

Definition at line 107 of file ilTestSkillLevelThresholdImportListTest.php.

107  : void
108  {
109  $this->assertFalse($this->testObj->valid());
110  $testSkillLevelThresholdImport1 = new ilTestSkillLevelThresholdImport();
111  $testSkillLevelThresholdImport2 = new ilTestSkillLevelThresholdImport();
112 
113  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
114  $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
115 
116  $this->assertTrue($this->testObj->valid());
117  }

Field Documentation

◆ $testObj

ilTestSkillLevelThresholdImportList ilTestSkillLevelThresholdImportListTest::$testObj
private

Definition at line 27 of file ilTestSkillLevelThresholdImportListTest.php.


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