ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillLevelThresholdsGUITest Class Reference

Class ilTestSkillLevelThresholdsGUITest. More...

+ Inheritance diagram for ilTestSkillLevelThresholdsGUITest:
+ Collaboration diagram for ilTestSkillLevelThresholdsGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testQuestionContainerId ()
 
 testQuestionAssignmentColumnsEnabled ()
 
 testTestId ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Private Attributes

ilTestSkillLevelThresholdsGUI $testObj
 
int $testId = 112
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdsGUITest::setUp ( )
protected

Definition at line 33 of file ilTestSkillLevelThresholdsGUITest.php.

33  : 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  }

◆ test_instantiateObject_shouldReturnInstance()

ilTestSkillLevelThresholdsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 47 of file ilTestSkillLevelThresholdsGUITest.php.

47  : void
48  {
49  $this->assertInstanceOf(ilTestSkillLevelThresholdsGUI::class, $this->testObj);
50  }

◆ testQuestionAssignmentColumnsEnabled()

ilTestSkillLevelThresholdsGUITest::testQuestionAssignmentColumnsEnabled ( )

Definition at line 59 of file ilTestSkillLevelThresholdsGUITest.php.

59  : 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  }

◆ testQuestionContainerId()

ilTestSkillLevelThresholdsGUITest::testQuestionContainerId ( )

Definition at line 52 of file ilTestSkillLevelThresholdsGUITest.php.

52  : void
53  {
54  $questionContainerId = 12;
55  $this->testObj->setQuestionContainerId($questionContainerId);
56  $this->assertEquals($questionContainerId, $this->testObj->getQuestionContainerId());
57  }

◆ testTestId()

ilTestSkillLevelThresholdsGUITest::testTestId ( )

Definition at line 68 of file ilTestSkillLevelThresholdsGUITest.php.

68  : void
69  {
70  $this->assertEquals($this->testId, $this->testObj->getTestId());
71  }

Field Documentation

◆ $testId

int ilTestSkillLevelThresholdsGUITest::$testId = 112
private

Definition at line 31 of file ilTestSkillLevelThresholdsGUITest.php.

◆ $testObj

ilTestSkillLevelThresholdsGUI ilTestSkillLevelThresholdsGUITest::$testObj
private

Definition at line 29 of file ilTestSkillLevelThresholdsGUITest.php.


The documentation for this class was generated from the following file: