ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilTestSkillLevelThresholdsGUITest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
30 
31  private int $testId = 112;
32 
33  protected function setUp(): void
34  {
35  parent::setUp();
36 
37  $this->testObj = new ilTestSkillLevelThresholdsGUI(
38  $this->createMock(ilCtrl::class),
39  $this->createMock(ilGlobalPageTemplate::class),
40  $this->createMock(ilLanguage::class),
41  $this->createMock(ilDBInterface::class),
42  $this->createMock(RequestDataCollector::class),
43  $this->testId
44  );
45  }
46 
48  {
49  $this->assertInstanceOf(ilTestSkillLevelThresholdsGUI::class, $this->testObj);
50  }
51 
52  public function testQuestionContainerId(): void
53  {
54  $questionContainerId = 12;
55  $this->testObj->setQuestionContainerId($questionContainerId);
56  $this->assertEquals($questionContainerId, $this->testObj->getQuestionContainerId());
57  }
58 
59  public function testQuestionAssignmentColumnsEnabled(): void
60  {
61  $this->testObj->setQuestionAssignmentColumnsEnabled(false);
62  $this->assertFalse($this->testObj->areQuestionAssignmentColumnsEnabled());
63 
64  $this->testObj->setQuestionAssignmentColumnsEnabled(true);
65  $this->assertTrue($this->testObj->areQuestionAssignmentColumnsEnabled());
66  }
67 
68  public function testTestId(): void
69  {
70  $this->assertEquals($this->testId, $this->testObj->getTestId());
71  }
72 }
Class ilTestSkillLevelThresholdsGUITest.