ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
SettingsScoringGUITest Class Reference

Class SettingsScoringGUITest. More...

+ Inheritance diagram for SettingsScoringGUITest:
+ Collaboration diagram for SettingsScoringGUITest:

Public Member Functions

 testScoringResultsGUIConstruct ()
 

Protected Member Functions

 getUIComponents ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilTestBaseTestCase
static callMethod ($obj, $name, array $args=[])
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ getUIComponents()

SettingsScoringGUITest::getUIComponents ( )
protected

Definition at line 30 of file SettingsScoringGUITest.php.

Referenced by testScoringResultsGUIConstruct().

30  : array
31  {
32  $test_helper = new UITestHelper();
33 
34  return [
35  $test_helper->factory(),
36  $test_helper->renderer(),
37  $this->createMock(ServerRequestInterface::class),
38  $this->getMockBuilder(\ILIAS\Refinery\Factory::class)->disableOriginalConstructor()->getMock(),
39  $test_helper->mainTemplate(),
40  $this->createMock(ilTabsGUI::class)
41  ];
42  }
Interface Observer Contains several chained tasks and infos about them.
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...
+ Here is the caller graph for this function:

◆ testScoringResultsGUIConstruct()

SettingsScoringGUITest::testScoringResultsGUIConstruct ( )

Definition at line 45 of file SettingsScoringGUITest.php.

References ILIAS\UI\examples\Layout\Page\Standard\$refinery, and getUIComponents().

45  : void
46  {
47  $objTestGui_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(['getObject'])->getMock();
48  $objTestGui_mock->expects(
49  $this->any()
50  )->method('getObject')->willReturn(
51  $this->getTestObjMock()
52  );
53 
54  [$ui_factory, $ui_renderer, $request, $refinery, $main_template, $tabs_gui] = $this->getUIComponents();
55 
56  $testObj = new SettingsScoringGUI(
57  $this->createMock(ilCtrl::class),
58  $this->createMock(ilAccessHandler::class),
59  $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock(),
60  $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
61  $this->createMock(ilDBInterface::class),
62  $this->createMock(ilComponentRepository::class),
63  $objTestGui_mock,
64  $main_template,
65  $tabs_gui,
66  $this->createMock(\ILIAS\Test\Logging\TestLogger::class),
67  $this->createMock(ScoreSettingsRepository::class),
68  -123,
69  $ui_factory,
70  $ui_renderer,
71  $refinery,
72  $request,
73  $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock(),
74  );
75 
76  $this->assertInstanceOf(SettingsScoringGUI::class, $testObj);
77  }
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

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