30 : void
31 {
32 parent::setUp();
33
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";
40 });
41
45 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
46 $component_factory = $this->createMock(ilComponentFactory::class);
47 $component_factory->method("getActivePluginsInSlot")->willReturn(new ArrayIterator());
50
51 $this->parentObj_mock = $this->getMockBuilder(ilTestEvaluationGUI::class)->disableOriginalConstructor()->onlyMethods(['getObject'])->getMock();
52 $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->
getTestObjMock());
54 }
TableGUI class for results by question.
setGlobalVariable(string $name, mixed $value)