This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
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.
◆ setUp()
ilTestSkillLevelThresholdImportListTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
ilTestSkillLevelThresholdImportListTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAddOriginalSkillPath()
ilTestSkillLevelThresholdImportListTest::testAddOriginalSkillPath |
( |
| ) |
|
Definition at line 52 of file ilTestSkillLevelThresholdImportListTest.php.
54 $this->testObj->addOriginalSkillPath(17, 15,
"test/path");
56 $reflProp =
new ReflectionProperty($this->testObj,
"originalSkillPaths");
57 $reflProp->setAccessible(
true);
58 $value = $reflProp->getValue($this->testObj);
60 $this->assertEquals([
"17:15" =>
"test/path"], $value);
◆ testAddOriginalSkillTitle()
ilTestSkillLevelThresholdImportListTest::testAddOriginalSkillTitle |
( |
| ) |
|
Definition at line 41 of file ilTestSkillLevelThresholdImportListTest.php.
43 $this->testObj->addOriginalSkillTitle(17, 15,
"Test");
45 $reflProp =
new ReflectionProperty($this->testObj,
"originalSkillTitles");
46 $reflProp->setAccessible(
true);
47 $value = $reflProp->getValue($this->testObj);
49 $this->assertEquals([
"17:15" =>
"Test"], $value);
◆ testAddSkillLevelThreshold()
ilTestSkillLevelThresholdImportListTest::testAddSkillLevelThreshold |
( |
| ) |
|
Definition at line 63 of file ilTestSkillLevelThresholdImportListTest.php.
66 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
68 $reflProp =
new ReflectionProperty($this->testObj,
"importedSkillLevelThresholds");
69 $reflProp->setAccessible(
true);
70 $value = $reflProp->getValue($this->testObj);
72 $this->assertEquals([$testSkillLevelThresholdImport], $value);
◆ testCurrent()
ilTestSkillLevelThresholdImportListTest::testCurrent |
( |
| ) |
|
Definition at line 75 of file ilTestSkillLevelThresholdImportListTest.php.
78 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
80 $this->assertEquals($testSkillLevelThresholdImport, $this->testObj->current());
◆ testKey()
ilTestSkillLevelThresholdImportListTest::testKey |
( |
| ) |
|
Definition at line 95 of file ilTestSkillLevelThresholdImportListTest.php.
100 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
101 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
103 $this->testObj->next();
104 $this->assertEquals(1, $this->testObj->key());
◆ testNext()
ilTestSkillLevelThresholdImportListTest::testNext |
( |
| ) |
|
Definition at line 83 of file ilTestSkillLevelThresholdImportListTest.php.
88 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
89 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
91 $this->testObj->next();
92 $this->assertEquals($testSkillLevelThresholdImport2, $this->testObj->current());
◆ testRewind()
ilTestSkillLevelThresholdImportListTest::testRewind |
( |
| ) |
|
Definition at line 119 of file ilTestSkillLevelThresholdImportListTest.php.
124 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
125 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
127 $this->testObj->next();
128 $this->testObj->next();
129 $this->testObj->rewind();
130 $this->assertEquals($testSkillLevelThresholdImport1, $this->testObj->current());
◆ testValid()
ilTestSkillLevelThresholdImportListTest::testValid |
( |
| ) |
|
Definition at line 107 of file ilTestSkillLevelThresholdImportListTest.php.
109 $this->assertFalse($this->testObj->valid());
113 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
114 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
116 $this->assertTrue($this->testObj->valid());
◆ $testObj
The documentation for this class was generated from the following file: