34 protected function setUp(): void
38 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
42 $lng_mock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->onlyMethods([
'txt'])->getMock();
43 $lng_mock->expects($this->any())->method(
'txt')->willReturn(
'Test');
46 $dataCache_mock = $this->getMockBuilder(ilObjectDataCache::class)->disableOriginalConstructor()->getMock();
49 $access_mock = $this->createMock(ilAccessHandler::class);
52 $help_mock = $this->getMockBuilder(ilHelpGUI::class)->disableOriginalConstructor()->getMock();
55 $user_mock = $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock();
58 $tabs_mock = $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->getMock();
61 $rbacsystem_mock = $this->getMockBuilder(ilRbacSystem::class)->disableOriginalConstructor()->getMock();
64 $refineryMock = $this->getMockBuilder(RefineryFactory::class)->disableOriginalConstructor()->getMock();
65 $refineryMock->method(
'random')->willReturn($this->getMockBuilder(RandomGroup::class)->getMock());
68 $dbMock = $this->createMock(ilDBInterface::class);
71 $treeMock = $this->createMock(ilTree::class);
74 $repository_mock = $this->createMock(ilComponentRepository::class);
111 return $this->getMockBuilder(\ilGlobalPageTemplate::class)->disableOriginalConstructor()->getMock();
116 return $this->getMockBuilder(\ilDBInterface::class)->disableOriginalConstructor()->getMock();
121 $mock = $this->getMockBuilder(\ILIAS::class)->disableOriginalConstructor()->getMock();
125 $account->fullname =
'Esther Tester';
127 $mock->account = $account;
Class ChatMainBarProvider .
Customizing of pimple-DIC for ILIAS.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
setGlobalVariable(string $name, $value)