Class ilTestSkillLevelThresholdImportListTest.
More...
◆ setUp()
ilTestSkillLevelThresholdImportListTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
ilTestSkillLevelThresholdImportListTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAddOriginalSkillPath()
ilTestSkillLevelThresholdImportListTest::testAddOriginalSkillPath |
( |
| ) |
|
Definition at line 54 of file ilTestSkillLevelThresholdImportListTest.php.
58 $originalSkillPath =
'test/path';
59 $this->testObj->addOriginalSkillPath($skillBaseId, $skillTrefId, $originalSkillPath);
61 $reflProp =
new ReflectionProperty($this->testObj,
'originalSkillPaths');
62 $reflProp->setAccessible(
true);
64 $this->assertEquals([
"$skillBaseId:$skillTrefId" => $originalSkillPath], $reflProp->getValue($this->testObj));
◆ testAddOriginalSkillTitle()
ilTestSkillLevelThresholdImportListTest::testAddOriginalSkillTitle |
( |
| ) |
|
Definition at line 41 of file ilTestSkillLevelThresholdImportListTest.php.
45 $originalSkillTitle =
'Test';
46 $this->testObj->addOriginalSkillTitle($skillBaseId, $skillTrefId, $originalSkillTitle);
48 $reflProp =
new ReflectionProperty($this->testObj,
'originalSkillTitles');
49 $reflProp->setAccessible(
true);
51 $this->assertEquals([
"$skillBaseId:$skillTrefId" => $originalSkillTitle], $reflProp->getValue($this->testObj));
◆ testAddSkillLevelThreshold()
ilTestSkillLevelThresholdImportListTest::testAddSkillLevelThreshold |
( |
| ) |
|
Definition at line 67 of file ilTestSkillLevelThresholdImportListTest.php.
70 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
72 $reflProp =
new ReflectionProperty($this->testObj,
'importedSkillLevelThresholds');
73 $reflProp->setAccessible(
true);
75 $this->assertEquals([$testSkillLevelThresholdImport], $reflProp->getValue($this->testObj));
◆ testCurrent()
ilTestSkillLevelThresholdImportListTest::testCurrent |
( |
| ) |
|
Definition at line 78 of file ilTestSkillLevelThresholdImportListTest.php.
81 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
83 $this->assertEquals($testSkillLevelThresholdImport, $this->testObj->current());
◆ testKey()
ilTestSkillLevelThresholdImportListTest::testKey |
( |
| ) |
|
Definition at line 98 of file ilTestSkillLevelThresholdImportListTest.php.
103 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
104 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
106 $this->testObj->next();
107 $this->assertEquals(1, $this->testObj->key());
◆ testNext()
ilTestSkillLevelThresholdImportListTest::testNext |
( |
| ) |
|
Definition at line 86 of file ilTestSkillLevelThresholdImportListTest.php.
91 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
92 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
94 $this->testObj->next();
95 $this->assertEquals($testSkillLevelThresholdImport2, $this->testObj->current());
◆ testRewind()
ilTestSkillLevelThresholdImportListTest::testRewind |
( |
| ) |
|
Definition at line 122 of file ilTestSkillLevelThresholdImportListTest.php.
127 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
128 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
130 $this->testObj->next();
131 $this->testObj->next();
132 $this->testObj->rewind();
133 $this->assertEquals($testSkillLevelThresholdImport1, $this->testObj->current());
◆ testValid()
ilTestSkillLevelThresholdImportListTest::testValid |
( |
| ) |
|
Definition at line 110 of file ilTestSkillLevelThresholdImportListTest.php.
112 $this->assertFalse($this->testObj->valid());
116 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
117 $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
119 $this->assertTrue($this->testObj->valid());
◆ $testObj
The documentation for this class was generated from the following file: