ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestSkillLevelThresholdsGUITest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28 
29  protected function setUp(): void
30  {
31  parent::setUp();
32 
33  $this->testObj = new ilTestSkillLevelThresholdsGUI(
34  $this->createMock(ilCtrl::class),
35  $this->createMock(ilGlobalPageTemplate::class),
36  $this->createMock(ilLanguage::class),
37  $this->createMock(ilDBInterface::class),
38  112
39  );
40  }
41 
43  {
44  $this->assertInstanceOf(ilTestSkillLevelThresholdsGUI::class, $this->testObj);
45  }
46 
47  public function testQuestionContainerId(): void
48  {
49  $this->testObj->setQuestionContainerId(12);
50  $this->assertEquals(12, $this->testObj->getQuestionContainerId());
51  }
52 
53  public function testQuestionAssignmentColumnsEnabled(): void
54  {
55  $this->testObj->setQuestionAssignmentColumnsEnabled(false);
56  $this->assertFalse($this->testObj->areQuestionAssignmentColumnsEnabled());
57 
58  $this->testObj->setQuestionAssignmentColumnsEnabled(true);
59  $this->assertTrue($this->testObj->areQuestionAssignmentColumnsEnabled());
60  }
61 
62  public function testTestId(): void
63  {
64  $this->assertEquals(112, $this->testObj->getTestId());
65  }
66 }
Class ilTestBaseClass.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...