30 protected function setUp(): void
34 $this->setGlobalVariable(
'ilLog', $this->createMock(ilLogger::class));
36 $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
37 ->disableOriginalConstructor()
39 $ilCtrl_mock->method(
'saveParameter');
40 $ilCtrl_mock->method(
'saveParameterByClass');
41 $this->setGlobalVariable(
'ilCtrl', $ilCtrl_mock);
43 $lng_mock = $this->getMockBuilder(ilLanguage::class)
44 ->disableOriginalConstructor()
45 ->onlyMethods([
'txt'])
47 $lng_mock->method(
'txt')->will($this->returnValue(
'Test'));
48 $this->setGlobalVariable(
'lng', $lng_mock);
50 $this->setGlobalVariable(
'ilias', $this->getIliasMock());
51 $this->setGlobalVariable(
'ilDB', $this->getDatabaseMock());
58 $this->assertInstanceOf(assMatchingQuestionGUI::class, $instance);
test_instantiateObject_shouldReturnInstance()
Matching question GUI representation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...