ILIAS  release_8 Revision v8.24
ilSystemStyleOverviewGUITest Class Reference
+ Inheritance diagram for ilSystemStyleOverviewGUITest:
+ Collaboration diagram for ilSystemStyleOverviewGUITest:

Public Member Functions

 testConstruct ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilSystemStyleBaseFSTest
 setUp ()
 
 tearDown ()
 

Protected Attributes

ilSystemStyleOverviewGUI $overview_gui
 
ilCtrl $ctrl
 
- Protected Attributes inherited from ilSystemStyleBaseFSTest
ilSystemStyleConfigMock $system_style_config
 
ilSkinStyleContainer $container
 
ilSkinStyle $style
 
ilFileSystemHelper $file_system
 
ILIAS DI Container $save_dic = null
 
ilLanguage $lng
 
ilSystemStyleMessageStack $message_stack
 

Detailed Description

Definition at line 29 of file ilSystemStyleOverviewGUITest.php.

Member Function Documentation

◆ setUp()

ilSystemStyleOverviewGUITest::setUp ( )
protected

Reimplemented from ilSystemStyleBaseFSTest.

Definition at line 35 of file ilSystemStyleOverviewGUITest.php.

35 : void
36 {
37 parent::setUp();
38 $ui_helper = new UITestHelper();
39
40 $this->ctrl = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
41 'getFormAction',
42 'getCmd'
43 ])->getMock();
44
45 $lng = new ilLanguageMock();
46 $tpl = $ui_helper->mainTemplate();
47 $ui_factory = $ui_helper->factory();
48 $renderer = $ui_helper->renderer();
49 $request = $this->getMockBuilder(WrapperFactory::class)->disableOriginalConstructor()->onlyMethods([
50 ])->getMock();
51
52 $toolbar = $this->getMockBuilder(ilToolbarGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
53 $tabs = $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
54 $data_factory = new DataFactory();
55 $refinery = new Refinery($data_factory, $lng);
56
57 $factory = new ilSkinFactory($this->lng, $this->system_style_config);
58 $help = $this->getMockBuilder(ilHelpGUI::class)->disableOriginalConstructor()->onlyMethods([
59 ])->getMock();
60 $upload = $this->getMockBuilder(FileUpload::class)->disableOriginalConstructor()->onlyMethods([])->getMock();
61
62 $this->overview_gui = new ilSystemStyleOverviewGUI(
63 $this->ctrl,
64 $lng,
65 $tpl,
66 $ui_factory,
67 $renderer,
68 $request,
69 $toolbar,
72 $upload,
73 $tabs,
74 $help,
75 $this->container->getSkin()->getId(),
76 $this->style->getId(),
77 '1',
78 false,
79 true
80 );
81 }
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
$factory
Definition: metadata.php:75
Refinery Factory $refinery

References $factory, ilSystemStyleBaseFSTest\$lng, ILIAS\Repository\$refinery, $tpl, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ testConstruct()

ilSystemStyleOverviewGUITest::testConstruct ( )

Definition at line 83 of file ilSystemStyleOverviewGUITest.php.

83 : void
84 {
85 $this->assertInstanceOf(ilSystemStyleOverviewGUI::class, $this->overview_gui);
86 }

Field Documentation

◆ $ctrl

ilCtrl ilSystemStyleOverviewGUITest::$ctrl
protected

Definition at line 33 of file ilSystemStyleOverviewGUITest.php.

◆ $overview_gui

ilSystemStyleOverviewGUI ilSystemStyleOverviewGUITest::$overview_gui
protected

Definition at line 31 of file ilSystemStyleOverviewGUITest.php.


The documentation for this class was generated from the following file: