ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjTestSettingsScoringResultsGUITest Class Reference

Class ilObjTestSettingsScoringResultsGUITest. More...

+ Inheritance diagram for ilObjTestSettingsScoringResultsGUITest:
+ Collaboration diagram for ilObjTestSettingsScoringResultsGUITest:

Public Member Functions

 testScoringResultsGUIConstruct ()
 

Protected Member Functions

 getUIComponents ()
 

Detailed Description

Member Function Documentation

◆ getUIComponents()

ilObjTestSettingsScoringResultsGUITest::getUIComponents ( )
protected

Definition at line 31 of file ilObjTestSettingsScoringResultsGUITest.php.

References ILIAS\Repository\$refinery.

Referenced by testScoringResultsGUIConstruct().

31  : array
32  {
33  $test_helper = new UITestHelper();
34 
35  $ui_factory = $test_helper->factory();
36  $ui_renderer = $test_helper->renderer();
37  $refinery = $this->getMockBuilder(\ILIAS\Refinery\Factory::class)
38  ->disableOriginalConstructor()
39  ->getMock();
40 
41  $request = $this->createMock(ServerRequestInterface::class);
42 
43  $main_template = $test_helper->mainTemplate();
44  $tabs_gui = $this->createMock(ilTabsGUI::class);
45 
46  return [
47  $ui_factory,
48  $ui_renderer,
49  $refinery,
50  $request,
51  $main_template,
52  $tabs_gui
53  ];
54  }
Class ChatMainBarProvider .
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
Refinery Factory $refinery
+ Here is the caller graph for this function:

◆ testScoringResultsGUIConstruct()

ilObjTestSettingsScoringResultsGUITest::testScoringResultsGUIConstruct ( )

Definition at line 57 of file ilObjTestSettingsScoringResultsGUITest.php.

References ILIAS\Repository\$refinery, and getUIComponents().

57  : void
58  {
59  $objTestGui_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(array('getObject'))->getMock();
60  $objTestGui_mock->expects(
61  $this->any()
62  )->method('getObject')->willReturn(
63  $this->createMock(ilObjTest::class)
64  );
65 
66  list($ui_factory, $ui_renderer, $refinery, $request, $main_template, $tabs_gui) = $this->getUIComponents();
67 
68  $this->testObj = new ilObjTestSettingsScoringResultsGUI(
69  $this->createMock(ilCtrl::class),
70  $this->createMock(ilAccessHandler::class),
71  $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock(),
72  $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
73  $this->createMock(ilDBInterface::class),
74  $this->createMock(ilComponentRepository::class),
75  $objTestGui_mock,
76  $main_template,
77  $tabs_gui,
78  $this->createMock(ScoreSettingsRepository::class),
79  -123,
80  $ui_factory,
81  $ui_renderer,
82  $refinery,
83  $request,
84  $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock(),
85  );
86 
87  $this->assertInstanceOf(ilObjTestSettingsScoringResultsGUI::class, $this->testObj);
88  }
Refinery Factory $refinery
+ Here is the call graph for this function:

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