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 $ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
44 $tpl = $ui_helper->mainTemplate();
45 $ui_factory = $ui_helper->factory();
46 $renderer = $ui_helper->renderer();
47 $request = $this->getMockBuilder(ServerRequestInterface::class)->disableOriginalConstructor()->onlyMethods([
50 $toolbar = $this->getMockBuilder(ilToolbarGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
66 $this->container->getSkin()->getId(),
73 $this->assertInstanceOf(ilSystemStyleLessGUI::class, $this->less_gui);
78 $form = $this->less_gui->initSystemStyleLessForm();
80 $this->assertInstanceOf(Form::class, $form);
81 $this->assertCount(1, $form->getInputs());
82 $this->assertInstanceOf(Section::class, $form->getInputs()[0]);
83 $this->assertCount(2, $form->getInputs()[0]->getInputs());
84 $this->assertInstanceOf(Section::class, $form->getInputs()[0]->getInputs()[0]);
85 $this->assertCount(3, $form->getInputs()[0]->getInputs()[0]->getInputs());
86 $this->assertInstanceOf(Text::class, $form->getInputs()[0]->getInputs()[0]->getInputs()[0]);
ilSystemStyleLessGUI $less_gui
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
testInitSystemStyleLessForm()
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