ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SettingsScoringGUITest Class Reference

Class SettingsScoringGUITest. More...

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

Public Member Functions

 testScoringResultsGUIConstruct ()
 
- Public Member Functions inherited from ilTestBaseTestCase
 createInstanceOf (string $class_name, array $explicit_parameters=[])
 
 createTraitInstanceOf (string $class_name, array $explicit_parameters=[])
 

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=[])
 
static getNonPublicPropertyValue (object $obj, string $name)
 
- Data Fields inherited from ilTestBaseTestCase
const string MOCKED_METHOD_WITHOUT_OUTPUT = 'MOCKED_METHOD_WITHOUT_OUTPUT'
 
const string DYNAMIC_CLASS = 'DynamicClass'
 
- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 
Container $backup_dic = null
 
- Static Protected Attributes inherited from ilTestBaseTestCase
static int $DYNAMIC_CLASS_COUNT = 0
 

Detailed Description

Member Function Documentation

◆ getUIComponents()

SettingsScoringGUITest::getUIComponents ( )
protected

Definition at line 32 of file SettingsScoringGUITest.php.

32 : array
33 {
34 return [
35 $this->factory(),
36 $this->renderer(),
37 $this->createMock(ServerRequestInterface::class),
38 $this->getMockBuilder(\ILIAS\Refinery\Factory::class)->disableOriginalConstructor()->getMock(),
39 $this->mainTemplate(),
40 $this->createMock(ilTabsGUI::class)
41 ];
42 }
mainTemplate()
renderer()
factory()
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References factory(), mainTemplate(), and renderer().

Referenced by testScoringResultsGUIConstruct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testScoringResultsGUIConstruct()

SettingsScoringGUITest::testScoringResultsGUIConstruct ( )

Definition at line 45 of file SettingsScoringGUITest.php.

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,
72 $request,
73 $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock(),
74 );
75
76 $this->assertInstanceOf(SettingsScoringGUI::class, $testObj);
77 }

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

+ Here is the call graph for this function:

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