38 protected function setUp(): void
43 if (!defined(
"ILIAS_LOG_ENABLED")) {
44 define(
"ILIAS_LOG_ENABLED",
false);
49 $db_mock = $this->createMock(ilDBInterface::class);
50 $db_mock->method(
"fetchAssoc")
52 $this->onConsecutiveCalls(
54 "component" =>
"Services/EventHandling",
55 "id" =>
"MyTestComponent" 68 $this->createMock(ilSetting::class)
70 $component_repository = $this->createMock(ilComponentRepository::class);
72 "component.repository",
75 $component_factory = $this->createMock(ilComponentFactory::class);
81 $languageMock = $this->getMockBuilder(ilLanguage::class)
82 ->disableOriginalConstructor()
89 $ctrl = $this->getMockBuilder(
'ilCtrl')->disableOriginalConstructor()->onlyMethods(
90 [
'setParameterByClass',
'redirectByClass',
'forwardCommand']
92 $ctrl->method(
'setParameterByClass');
93 $ctrl->method(
'redirectByClass');
97 $objectDataCache = $this
98 ->getMockBuilder(ilObjectDataCache::class)
99 ->disableOriginalConstructor()
115 $pm->setAppend(
"append");
125 $pm->setTitle(
"title");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Customizing of pimple-DIC for ILIAS.
setGlobalVariable(string $name, $value)
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']