19 declare(strict_types=1);
21 require_once(
'libs/composer/vendor/autoload.php');
22 include_once(
'./tests/UI/UITestHelper.php');
35 protected function setUp(): void
40 $this->
ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
41 'getFormAction',
'getCmd',
'getLinkTargetByClass' 44 $tpl = $ui_helper->mainTemplate();
45 $ui_factory = $ui_helper->factory();
46 $renderer = $ui_helper->renderer();
47 $request = $this->getMockBuilder(WrapperFactory::class)->disableOriginalConstructor()->onlyMethods([
50 $toolbar = $this->getMockBuilder(ilToolbarGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
51 $upload = $this->getMockBuilder(FileUpload::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
52 $tabs = $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
70 $this->container->getSkin()->getId(),
77 $this->
ctrl->method(
'getCmd')->willReturn(
'');
78 $this->assertInstanceOf(ilSystemStyleIconsGUI::class, $this->icons_gui);
83 $this->assertInstanceOf(\
ILIAS\
UI\
Component\Panel\Report::class, $this->icons_gui->getIconsPreviews());
89 $this->
ctrl->method(
'getCmd')->willReturn(
'preview');
90 $this->icons_gui->executeCommand();
91 $this->assertTrue(
true);
ilSystemStyleIconsGUI $icons_gui
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
tesGetIconsPreviewstPreview()
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Refinery Factory $refinery