ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSystemStyleOverviewGUITest Class Reference
+ Inheritance diagram for ilSystemStyleOverviewGUITest:
+ Collaboration diagram for ilSystemStyleOverviewGUITest:

Public Member Functions

 testConstruct ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilSystemStyleBaseFS
 setUp ()
 
 getAllContentOfFolder (string $directory)
 

Protected Attributes

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

Detailed Description

Definition at line 30 of file ilSystemStyleOverviewGUITest.php.

Member Function Documentation

◆ setUp()

ilSystemStyleOverviewGUITest::setUp ( )
protected

Reimplemented from ilSystemStyleBaseFS.

Definition at line 36 of file ilSystemStyleOverviewGUITest.php.

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

References ilSystemStyleBaseFS\$lng, ILIAS\UI\examples\Layout\Page\Standard\$refinery, $renderer, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and UITestHelper.

+ Here is the call graph for this function:

◆ testConstruct()

ilSystemStyleOverviewGUITest::testConstruct ( )

Definition at line 84 of file ilSystemStyleOverviewGUITest.php.

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

Field Documentation

◆ $ctrl

ilCtrl ilSystemStyleOverviewGUITest::$ctrl
protected

Definition at line 34 of file ilSystemStyleOverviewGUITest.php.

◆ $overview_gui

ilSystemStyleOverviewGUI ilSystemStyleOverviewGUITest::$overview_gui
protected

Definition at line 32 of file ilSystemStyleOverviewGUITest.php.


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