ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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

Definition at line 36 of file ilSystemStyleOverviewGUITest.php.

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

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,
68  $renderer,
69  $request,
70  $toolbar,
71  $refinery,
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  }
$renderer
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
+ 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: