41                              : void
   42    {
   45 
   47        $DIC[
'resource_storage'] = $this->storage_mock = $this->createMock(Services::class);
 
   48        $this->manager_mock = $this->createMock(Manager::class);
   49        $DIC[
'ilUser'] = $this->createMock(ilObjUser::class);
 
   50        $DIC[
'ilUser']->expects($this->any())->method(
'getPref')->willReturn(
'en');
 
   51        $DIC[
'ilDB'] = $this->db_mock = $this->createMock(ilDBInterface::class);
 
   52        $DIC[
'upload'] = $this->createMock(FileUpload::class);
 
   53        $DIC[
'ilias'] = $this->createMock(ILIAS::class);
 
   54        $DIC[
'objDefinition'] = $this->createMock(ilObjectDefinition::class);
 
   55        $DIC[
'ilLog'] = $this->createMock(ilLogger::class);
 
   56        $DIC[
'ilErr'] = $this->createMock(ilErrorHandling::class);
 
   57        $DIC[
'tree'] = $this->createMock(ilTree::class);
 
   58        $DIC[
'tpl'] = $this->createMock(ilGlobalTemplateInterface::class);
 
   59        $DIC[
'ilClientIniFile'] = $this->createMock(ilIniFile::class);
 
   60        $DIC[
'ilAccess'] = $this->createMock(ilAccess::class);
 
   61        $DIC[
'ilObjDataCache'] = $this->createMock(ilObjectDataCache::class);
 
   62        $DIC[
'ilAppEventHandler'] = $this->createMock(ilAppEventHandler::class);
 
   63        $DIC[
'lng'] = $this->createMock(ilLanguage::class);
 
   64        $DIC[
'ilCtrl'] = $this->createMock(ilCtrlInterface::class);
 
   65        $DIC[
'component.factory'] = $this->component_factory_mock = $this->createMock(ilComponentFactory::class);
 
   66        
   67
   68
   69
   70 
   71        if (!defined('ILIAS_LOG_ENABLED')) {
   72            define('ILIAS_LOG_ENABLED', false);
   73        }
   74        if (!defined('DEBUG')) {
   75            define('DEBUG', false);
   76        }
   77    }
Customizing of pimple-DIC for ILIAS.