19 declare(strict_types=1);
    29     protected function setUp(): void
    38         $this->assertInstanceOf(ilTestSkillLevelThresholdImportList::class, $this->testObj);
    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));
    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));
    70         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
    72         $reflProp = 
new ReflectionProperty($this->testObj, 
'importedSkillLevelThresholds');
    73         $reflProp->setAccessible(
true);
    75         $this->assertEquals([$testSkillLevelThresholdImport], $reflProp->getValue($this->testObj));
    81         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport);
    83         $this->assertEquals($testSkillLevelThresholdImport, $this->testObj->current());
    91         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
    92         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
    94         $this->testObj->next();
    95         $this->assertEquals($testSkillLevelThresholdImport2, $this->testObj->current());
   103         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
   104         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
   106         $this->testObj->next();
   107         $this->assertEquals(1, $this->testObj->key());
   112         $this->assertFalse($this->testObj->valid());
   116         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport1);
   117         $this->testObj->addSkillLevelThreshold($testSkillLevelThresholdImport2);
   119         $this->assertTrue($this->testObj->valid());
   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());
 
testAddOriginalSkillTitle()
 
test_instantiateObject_shouldReturnInstance()
 
testAddSkillLevelThreshold()
 
testAddOriginalSkillPath()
 
Class ilTestSkillLevelThresholdImportListTest. 
 
ilTestSkillLevelThresholdImportList $testObj