ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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->method('getObject')->willReturn(
49 $this->getTestObjMock()
50 );
51
52 [$ui_factory, $ui_renderer, $request, $refinery, $main_template, $tabs_gui] = $this->getUIComponents();
53
54 $testObj = new SettingsScoringGUI(
55 $this->createMock(ilCtrl::class),
56 $this->createMock(ilAccessHandler::class),
57 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock(),
58 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
59 $this->createMock(ilDBInterface::class),
60 $this->createMock(ilComponentRepository::class),
61 $objTestGui_mock,
62 $main_template,
63 $tabs_gui,
64 $this->createMock(\ILIAS\Test\Logging\TestLogger::class),
65 $this->createMock(ScoreSettingsRepository::class),
66 -123,
67 $ui_factory,
71 $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock(),
72 );
73
74 $this->assertInstanceOf(SettingsScoringGUI::class, $testObj);
75 }
$request
@ilCtrl_Calls ilObjLearningSequenceContentGUI: ilObjLearningSequenceConditionsGUI
Definition: ltiauth.php:39

References ILIAS\UI\examples\Layout\Page\Mail\$refinery, $request, ILIAS\BookingManager\Common\Table\$ui_renderer, getTestObjMock(), and getUIComponents().

+ Here is the call graph for this function:

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