ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilParticipantsTestResultsGUITest Class Reference

Class ilParticipantsTestResultsGUITest. More...

+ Inheritance diagram for ilParticipantsTestResultsGUITest:
+ Collaboration diagram for ilParticipantsTestResultsGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestObj ()
 
 testQuestionSetConfig ()
 
 testTestAccess ()
 
 testObjectiveParent ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilTestBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIliasMock ()
 
 addGlobal_ilAccess ()
 
 addGlobal_ilUser ()
 
 addGlobal_objDefinition ()
 
 addGlobal_tree ()
 
 addGlobal_ilSetting ()
 
 addGlobal_rbacsystem ()
 
 addGlobal_ilRbacAdmin ()
 
 addGlobal_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilBench ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_GlobalScreenService ()
 
 addGlobal_ilNavigationHistory ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 addGlobal_ilComponentFactory ()
 
 addGlobal_ilTabs ()
 
 addGlobal_ilObjDataCache ()
 
 addGlobal_ilLocator ()
 
 addGlobal_rbacreview ()
 
 addGlobal_ilToolbar ()
 
 addGlobal_http ()
 
 addGlobal_ilIliasIniFile ()
 
 addGlobal_ilLoggerFactory ()
 
 addGlobal_ilHelp ()
 
 addGlobal_ui ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 
 addGlobal_refinery ()
 
 addGlobal_skillService ()
 
 addGlobal_objectService ()
 
 addGlobal_resourceStorage ()
 
 getTestObjMock ()
 

Private Attributes

ilParticipantsTestResultsGUI $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilParticipantsTestResultsGUITest::setUp ( )
protected

Definition at line 29 of file ilParticipantsTestResultsGUITest.php.

References $DIC, ilTestBaseTestCase\addGlobal_http(), ilTestBaseTestCase\addGlobal_ilCtrl(), ilTestBaseTestCase\addGlobal_ilDB(), ilTestBaseTestCase\addGlobal_ilLoggerFactory(), ilTestBaseTestCase\addGlobal_ilTabs(), ilTestBaseTestCase\addGlobal_ilToolbar(), ilTestBaseTestCase\addGlobal_ilUser(), ilTestBaseTestCase\addGlobal_lng(), ilTestBaseTestCase\addGlobal_refinery(), ilTestBaseTestCase\addGlobal_tpl(), ilTestBaseTestCase\addGlobal_uiFactory(), and ilTestBaseTestCase\addGlobal_uiRenderer().

29  : void
30  {
31  global $DIC;
32  parent::setUp();
33 
34  $this->addGlobal_tpl();
36  $this->addGlobal_http();
37  $this->addGlobal_refinery();
38  $this->addGlobal_ilCtrl();
39  $this->addGlobal_lng();
40  $this->addGlobal_ilUser();
41  $this->addGlobal_ilDB();
42  $this->addGlobal_ilTabs();
43  $this->addGlobal_ilToolbar();
44  $this->addGlobal_uiFactory();
45  $this->addGlobal_uiRenderer();
46 
47 
48  $this->testObj = new ilParticipantsTestResultsGUI(
49  $DIC['ilCtrl'],
50  $DIC['lng'],
51  $DIC['ilDB'],
52  $DIC['ilUser'],
53  $DIC['ilTabs'],
54  $DIC['ilToolbar'],
55  $DIC['tpl'],
56  $DIC['ui.factory'],
57  $DIC['ui.renderer'],
58  $this->createMock(ilTestParticipantAccessFilterFactory::class),
59  $this->createMock(ILIAS\Test\InternalRequestService::class),
60  $DIC['http'],
61  $DIC['refinery']
62  );
63  }
ilParticipantsTestResultsGUI: ilTestEvaluationGUI ilParticipantsTestResultsGUI: ilAssQuestionPageGUI...
Class ChatMainBarProvider .
global $DIC
Definition: feed.php:28
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:

◆ test_instantiateObject_shouldReturnInstance()

ilParticipantsTestResultsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 65 of file ilParticipantsTestResultsGUITest.php.

65  : void
66  {
67  $this->assertInstanceOf(ilParticipantsTestResultsGUI::class, $this->testObj);
68  }

◆ testObjectiveParent()

ilParticipantsTestResultsGUITest::testObjectiveParent ( )

Definition at line 100 of file ilParticipantsTestResultsGUITest.php.

100  : void
101  {
102  $objectiveParent_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
103 
104  $this->assertNull($this->testObj->getObjectiveParent());
105 
106  $this->testObj->setObjectiveParent($objectiveParent_mock);
107  $this->assertEquals($objectiveParent_mock, $this->testObj->getObjectiveParent());
108  }

◆ testQuestionSetConfig()

ilParticipantsTestResultsGUITest::testQuestionSetConfig ( )

Definition at line 80 of file ilParticipantsTestResultsGUITest.php.

80  : void
81  {
82  $testQuestionSetConfig_mock = $this->createMock(ilTestQuestionSetConfig::class);
83 
84  $this->assertNull($this->testObj->getQuestionSetConfig());
85 
86  $this->testObj->setQuestionSetConfig($testQuestionSetConfig_mock);
87  $this->assertEquals($testQuestionSetConfig_mock, $this->testObj->getQuestionSetConfig());
88  }

◆ testTestAccess()

ilParticipantsTestResultsGUITest::testTestAccess ( )

Definition at line 90 of file ilParticipantsTestResultsGUITest.php.

90  : void
91  {
92  $testAccess_mock = $this->createMock(ilTestAccess::class);
93 
94  $this->assertNull($this->testObj->getTestAccess());
95 
96  $this->testObj->setTestAccess($testAccess_mock);
97  $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
98  }

◆ testTestObj()

ilParticipantsTestResultsGUITest::testTestObj ( )

Definition at line 70 of file ilParticipantsTestResultsGUITest.php.

70  : void
71  {
72  $objTest_mock = $this->createMock(ilObjTest::class);
73 
74  $this->assertNull($this->testObj->getTestObj());
75 
76  $this->testObj->setTestObj($objTest_mock);
77  $this->assertEquals($objTest_mock, $this->testObj->getTestObj());
78  }

Field Documentation

◆ $testObj

ilParticipantsTestResultsGUI ilParticipantsTestResultsGUITest::$testObj
private

Definition at line 27 of file ilParticipantsTestResultsGUITest.php.


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