30 protected function setUp(): void
34 $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
35 ->disableOriginalConstructor()
37 $ilCtrl_mock->method(
'saveParameter');
38 $ilCtrl_mock->method(
'saveParameterByClass');
39 $this->setGlobalVariable(
'ilCtrl', $ilCtrl_mock);
41 $lng_mock = $this->getMockBuilder(ilLanguage::class)
42 ->disableOriginalConstructor()
43 ->onlyMethods([
'txt'])
45 $lng_mock->method(
'txt')->will($this->returnValue(
'Test'));
46 $this->setGlobalVariable(
'lng', $lng_mock);
48 $this->setGlobalVariable(
'ilias', $this->getIliasMock());
49 $this->setGlobalVariable(
'ilDB', $this->getDatabaseMock());
56 $this->assertInstanceOf(assMatchingQuestion::class, $instance);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class for matching questions.
test_instantiateObject_shouldReturnInstance()