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