32     protected function setUp(): void
    36         $this->setGlobalVariable(
'ilLog', $this->createMock(ilLogger::class));
    38         $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
    39                             ->disableOriginalConstructor()
    41         $ilCtrl_mock->method(
'saveParameter');
    42         $ilCtrl_mock->method(
'saveParameterByClass');
    43         $this->setGlobalVariable(
'ilCtrl', $ilCtrl_mock);
    45         $lng_mock = $this->getMockBuilder(ilLanguage::class)
    46                          ->disableOriginalConstructor()
    47                          ->onlyMethods([
'txt'])
    49         $lng_mock->method(
'txt')->will($this->returnValue(
'Test'));
    50         $this->setGlobalVariable(
'lng', $lng_mock);
    52         $this->setGlobalVariable(
'ilias', $this->getIliasMock());
    53         $this->setGlobalVariable(
'ilDB', $this->getDatabaseMock());
    60         $this->assertInstanceOf(assMultipleChoiceGUI::class, $instance);
 
test_instantiateObject_shouldReturnInstance()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...