ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestSkillLevelThresholdImporterTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
28 
29  protected function setUp(): void
30  {
31  global $DIC;
32  parent::setUp();
33 
34  $this->testObj = new ilTestSkillLevelThresholdImporter($DIC['ilDB']);
35  }
36 
38  {
39  $this->assertInstanceOf(ilTestSkillLevelThresholdImporter::class, $this->testObj);
40  }
41 
42  public function testTargetTestId(): void
43  {
44  $this->testObj->setTargetTestId(12);
45  $this->assertEquals(12, $this->testObj->getTargetTestId());
46  }
47 
48  public function testImportInstallationId(): void
49  {
50  $this->testObj->setImportInstallationId(12);
51  $this->assertEquals(12, $this->testObj->getImportInstallationId());
52  }
53 
54  public function testImportMappingRegistry(): void
55  {
56  $mock = $this->createMock(ilImportMapping::class);
57  $this->testObj->setImportMappingRegistry($mock);
58  $this->assertEquals($mock, $this->testObj->getImportMappingRegistry());
59  }
60 
62  {
63  $mock = $this->createMock(ilAssQuestionSkillAssignmentList::class);
64  $this->testObj->setImportedQuestionSkillAssignmentList($mock);
65  $this->assertEquals($mock, $this->testObj->getImportedQuestionSkillAssignmentList());
66  }
67 
68  public function testImportThresholdList(): void
69  {
70  $mock = $this->createMock(ilTestSkillLevelThresholdImportList::class);
71  $this->testObj->setImportThresholdList($mock);
72  $this->assertEquals($mock, $this->testObj->getImportThresholdList());
73  }
74 
75  public function testFailedThresholdImportSkillList(): void
76  {
77  $mock = $this->createMock(ilAssQuestionAssignedSkillList::class);
78  $this->testObj->setFailedThresholdImportSkillList($mock);
79  $this->assertEquals($mock, $this->testObj->getFailedThresholdImportSkillList());
80  }
81 }
Class ilTestSkillLevelThresholdImporterTest.
global $DIC
Definition: feed.php:28
Class ilTestBaseClass.