ILIAS  release_8 Revision v8.24
ilTestSkillLevelThresholdImporterTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilTestSkillLevelThresholdImporter();
34 }
35
37 {
38 $this->assertInstanceOf(ilTestSkillLevelThresholdImporter::class, $this->testObj);
39 }
40
41 public function testTargetTestId(): void
42 {
43 $this->testObj->setTargetTestId(12);
44 $this->assertEquals(12, $this->testObj->getTargetTestId());
45 }
46
47 public function testImportInstallationId(): void
48 {
49 $this->testObj->setImportInstallationId(12);
50 $this->assertEquals(12, $this->testObj->getImportInstallationId());
51 }
52
53 public function testImportMappingRegistry(): void
54 {
55 $mock = $this->createMock(ilImportMapping::class);
56 $this->testObj->setImportMappingRegistry($mock);
57 $this->assertEquals($mock, $this->testObj->getImportMappingRegistry());
58 }
59
61 {
62 $mock = $this->createMock(ilAssQuestionSkillAssignmentList::class);
63 $this->testObj->setImportedQuestionSkillAssignmentList($mock);
64 $this->assertEquals($mock, $this->testObj->getImportedQuestionSkillAssignmentList());
65 }
66
67 public function testImportThresholdList(): void
68 {
69 $mock = $this->createMock(ilTestSkillLevelThresholdImportList::class);
70 $this->testObj->setImportThresholdList($mock);
71 $this->assertEquals($mock, $this->testObj->getImportThresholdList());
72 }
73
74 public function testFailedThresholdImportSkillList(): void
75 {
76 $mock = $this->createMock(ilAssQuestionAssignedSkillList::class);
77 $this->testObj->setFailedThresholdImportSkillList($mock);
78 $this->assertEquals($mock, $this->testObj->getFailedThresholdImportSkillList());
79 }
80}
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...