Class ilObjTestGUITest.
More...
◆ getNewTestGUI()
ilObjTestGUITest::getNewTestGUI |
( |
| ) |
|
|
protected |
◆ setUp()
ilObjTestGUITest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
ilObjTestGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 65 of file ilObjTestGUITest.php.
67 $this->assertInstanceOf(ilObjTestGUI::class, $this->testObj);
◆ testCancelCreateQuestionObject()
ilObjTestGUITest::testCancelCreateQuestionObject |
( |
| ) |
|
◆ testRunObject()
ilObjTestGUITest::testRunObject |
( |
| ) |
|
Definition at line 78 of file ilObjTestGUITest.php.
References ilObjTestGUI\runObject(), and setGlobalVariable().
80 $ctrl_mock = $this->createMock(ilCtrl::class);
84 ->expects($this->once())
85 ->method(
'redirectByClass')
86 ->with([ilRepositoryGUI::class, ilObjTestGUI::class, ilInfoScreenGUI::class]);
setGlobalVariable(string $name, mixed $value)
◆ testTestAccess()
ilObjTestGUITest::testTestAccess |
( |
| ) |
|
Definition at line 70 of file ilObjTestGUITest.php.
72 $testAccess_mock = $this->createMock(ilTestAccess::class);
74 $this->testObj->setTestAccess($testAccess_mock);
75 $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
◆ $testObj
The documentation for this class was generated from the following file: