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());
50 $this->setGlobalVariable(
'resource_storage', $this->
getIRSSMock());
51 $this->setGlobalVariable(
'file_delivery', $this->getFileDelivery());
58 $this->assertInstanceOf(assFileUpload::class, $instance);
Class for file upload questions.
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...