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'));
 
   56        require_once 
'./Modules/TestQuestionPool/classes/class.assFileUpload.php';
 
   61        $this->assertInstanceOf(
'assFileUpload', $instance);
 
setGlobalVariable(string $name, $value)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
test_instantiateObject_shouldReturnInstance()
 
Class for file upload questions.