34 $lng_mock = $this->createMock(ilLanguage::class);
37 ->willReturnCallback(
function () {
38 return "testTranslation";
41 $ctrl_mock = $this->createMock(ilCtrl::class);
43 ->method(
"getFormAction")
44 ->willReturnCallback(
function () {
45 return "testFormAction";
48 $mainTpl_mock = $this->createMock(ilGlobalPageTemplate::class);
49 $db_mock = $this->createMock(ilDBInterface::class);
50 $tree_mock = $this->createMock(ilTree::class);
57 $this->
setGlobalVariable(
"ilObjDataCache", $this->createMock(ilObjectDataCache::class));
59 $component_factory = $this->createMock(ilComponentFactory::class);
60 $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
63 $component_repository = $this->createMock(ilComponentRepository::class);
66 $this->parentObj_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
67 $this->parentObj_mock->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
69 $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->getMock(),
72 $this->createMock(ilLogger::class),
73 $component_repository,
74 $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock(),
75 $this->createMock(ilAccessHandler::class),
76 $this->createMock(\
ILIAS\
HTTP\GlobalHttpState::class),
79 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock()
81 $this->createMock(
ILIAS\
UI\Factory::class),
82 $this->createMock(
ILIAS\
UI\Renderer::class),
83 $this->createMock(
ILIAS\
Test\InternalRequestService::class),
84 $this->createMock(
ILIAS\TestQuestionPool\QuestionInfoService::class)
Class ChatMainBarProvider .
setGlobalVariable(string $name, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...