Class ilTestSkillLevelThresholdsTableGUITest.
More...
◆ setUp()
ilTestSkillLevelThresholdsTableGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file ilTestSkillLevelThresholdsTableGUITest.php.
References getTestObjMock(), and setGlobalVariable().
34 $lng_mock = $this->createMock(ilLanguage::class);
35 $ctrl_mock = $this->createMock(ilCtrl::class);
36 $ctrl_mock->expects($this->any())
37 ->method(
"getFormAction")
38 ->willReturnCallback(
function () {
39 return "testFormAction";
45 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
46 $component_factory = $this->createMock(ilComponentFactory::class);
47 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
51 $this->parentObj_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods([
'getObject'])->getMock();
52 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->
getTestObjMock());
54 $this->parentObj_mock,
setGlobalVariable(string $name, mixed $value)
◆ test_instantiateObject_shouldReturnInstance()
ilTestSkillLevelThresholdsTableGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testQuestionAssignmentColumnsEnabled()
ilTestSkillLevelThresholdsTableGUITest::testQuestionAssignmentColumnsEnabled |
( |
| ) |
|
Definition at line 67 of file ilTestSkillLevelThresholdsTableGUITest.php.
69 $this->assertIsBool($this->tableGui->areQuestionAssignmentColumnsEnabled());
70 $this->tableGui->setQuestionAssignmentColumnsEnabled(
false);
71 $this->assertFalse($this->tableGui->areQuestionAssignmentColumnsEnabled());
72 $this->tableGui->setQuestionAssignmentColumnsEnabled(
true);
73 $this->assertTrue($this->tableGui->areQuestionAssignmentColumnsEnabled());
◆ $parentObj_mock
ilObjTestGUI ilTestSkillLevelThresholdsTableGUITest::$parentObj_mock |
|
private |
◆ $tableGui
The documentation for this class was generated from the following file: