ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTestSkillLevelThresholdsGUITest Class Reference

Class ilTestSkillLevelThresholdsGUITest. More...

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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testQuestionContainerId ()
 
 testQuestionAssignmentColumnsEnabled ()
 
 testTestId ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

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=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestSkillLevelThresholdsGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

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: