3 declare(strict_types=1);
42 protected function setUp(): void
46 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
61 $this->getMockBuilder(\
ILIAS\
DI\LoggingServices::class)->disableOriginalConstructor()->getMock();
64 ->getMockBuilder(\
ILIAS\
HTTP\Services::class)
65 ->disableOriginalConstructor()
66 ->onlyMethods([
'request',
'wrapper'])->getMock();
69 ->getMockBuilder(\GuzzleHttp\Psr7\ServerRequest::class)
70 ->disableOriginalConstructor()
71 ->onlyMethods([
'getParsedBody'])->getMock();
72 $request_mock->method(
'getParsedBody')->willReturn(array());
73 $http_mock->method(
'request')->willReturn($request_mock);
75 $wrapper_mock = $this->createMock(\
ILIAS\
HTTP\Wrapper\WrapperFactory::class);
76 $http_mock->method(
'wrapper')->willReturn($wrapper_mock);
113 return $this->getMockBuilder(ilTemplate::class)->disableOriginalConstructor()->getMock();
121 return $this->getMockBuilder(ilDBInterface::class)->disableOriginalConstructor()->getMock();
129 $mock = $this->getMockBuilder(ILIAS::class)->disableOriginalConstructor()->getMock();
133 $account->fullname =
'Esther Tester';
135 $mock->account = $account;
152 $this->
setGlobalVariable(
"objDefinition", $this->createMock(ilObjectDefinition::class));
212 $this->
setGlobalVariable(
"ilAppEventHandler", $this->createMock(ilAppEventHandler::class));
222 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
232 $this->
setGlobalVariable(
"ilObjDataCache", $this->createMock(ilObjectDataCache::class));
262 $this->
setGlobalVariable(
"ilLoggerFactory", $this->createMock(ilLoggerFactory::class));
287 $refineryMock = $this->getMockBuilder(RefineryFactory::class)->disableOriginalConstructor()->getMock();
288 $refineryMock->expects(self::any())->method(
'random')->willReturn($this->getMockBuilder(RandomGroup::class)->getMock());
addGlobal_ilLoggerFactory()
addGlobal_objDefinition()
Class ChatMainBarProvider .
addGlobal_ilIliasIniFile()
addGlobal_ilComponentRepository()
Customizing of pimple-DIC for ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
setGlobalVariable(string $name, $value)
addGlobal_ilAppEventHandler()
addGlobal_ilObjDataCache()