32 protected function setUp(): void
38 $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
39 ->disableOriginalConstructor()
41 $ilCtrl_mock->method(
'saveParameter');
42 $ilCtrl_mock->method(
'saveParameterByClass');
45 $lng_mock = $this->getMockBuilder(ilLanguage::class)
46 ->disableOriginalConstructor()
47 ->onlyMethods([
'txt'])
49 $lng_mock->method(
'txt')->willReturn(
'Test');
60 $this->assertInstanceOf(assSingleChoiceGUI::class, $instance);
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setGlobalVariable(string $name, mixed $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...