30 protected function setUp(): void
34 $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
35 ->disableOriginalConstructor()
37 $ilCtrl_mock->method(
'saveParameter');
38 $ilCtrl_mock->method(
'saveParameterByClass');
41 $lng_mock = $this->getMockBuilder(ilLanguage::class)
42 ->disableOriginalConstructor()
43 ->onlyMethods([
'txt'])
45 $lng_mock->method(
'txt')->will($this->returnValue(
'Test'));
49 $ilias_mock->account =
new stdClass();
50 $ilias_mock->account->id = 6;
51 $ilias_mock->account->fullname =
'Esther Tester';
65 require_once
'./Modules/TestQuestionPool/classes/class.assClozeTestGUI.php';
72 $this->assertInstanceOf(
'assClozeTestGUI', $instance);
Cloze test question GUI representation.
test_instantiateObject_shouldReturnInstance()
setGlobalVariable(string $name, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...