19 declare(strict_types=1);
31 protected function setUp(): void
33 if (!defined(
'ANONYMOUS_USER_ID')) {
34 define(
'ANONYMOUS_USER_ID', 13);
39 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
92 $this->assertInstanceOf(ilObjTestGUI::class, $this->testObj);
97 $testAccess_mock = $this->createMock(ilTestAccess::class);
99 $this->testObj->setTestAccess($testAccess_mock);
100 $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
105 $testTabsManager_mock = $this->createMock(ilTestTabsManager::class);
107 $this->testObj->setTabsManager($testTabsManager_mock);
108 $this->assertEquals($testTabsManager_mock, $this->testObj->getTabsManager());
113 $ctrl_mock = $this->createMock(ilCtrl::class);
115 ->expects($this->once())
117 ->with($this->testObj,
"infoScreen");
127 $ctrl_mock = $this->createMock(ilCtrl::class);
129 ->expects($this->once())
130 ->method(
"redirectByClass")
131 ->with(
"iltestevaluationgui",
"outEvaluation");
141 $ctrl_mock = $this->createMock(ilCtrl::class);
143 ->expects($this->once())
145 ->with($this->testObj,
"questions");
155 $ctrl_mock = $this->createMock(ilCtrl::class);
157 ->expects($this->once())
159 ->with($this->testObj,
"questions");
169 $ctrl_mock = $this->createMock(ilCtrl::class);
171 ->expects($this->once())
173 ->with($this->testObj,
"questions");
addGlobal_objDefinition()
addGlobal_GlobalScreenService()
cancelCreateQuestionObject()
Called when the creation of a new question is cancelled.
addGlobal_ilComponentFactory()
addGlobal_ilComponentRepository()
Customizing of pimple-DIC for ILIAS.
test_instantiateObject_shouldReturnInstance()
cancelRemoveQuestionsObject()
Cancels the removal of questions from the test.
testCancelCreateQuestionObject()
testCancelRemoveQuestionsObject()
addGlobal_ilNavigationHistory()
setGlobalVariable(string $name, $value)
addGlobal_ilObjDataCache()
addGlobal_objectService()
testOutEvaluationObject()
backObject()
Called when the back button in the question browser was pressed.