19declare(strict_types=1);
21require_once(
'vendor/composer/vendor/autoload.php');
22include_once(
'./components/ILIAS/UI/tests/UITestHelper.php');
36 protected function setUp(): void
41 $this->
ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
47 $tpl = $ui_helper->mainTemplate();
48 $ui_factory = $ui_helper->factory();
50 $request = $this->getMockBuilder(WrapperFactory::class)->disableOriginalConstructor()->onlyMethods([
53 $toolbar = $this->getMockBuilder(ilToolbarGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
54 $tabs = $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
55 $data_factory =
new DataFactory();
59 $help = $this->getMockBuilder(ilHelpGUI::class)->disableOriginalConstructor()->onlyMethods([
61 $upload = $this->getMockBuilder(FileUpload::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
76 $this->container->getSkin()->getId(),
77 $this->style->getId(),
86 $this->assertInstanceOf(ilSystemStyleOverviewGUI::class, $this->overview_gui);
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Class ilCtrl provides processing control methods.
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
ilSystemStyleOverviewGUI $overview_gui