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

Class ilTestResultsGUITest. More...

+ Inheritance diagram for ilTestResultsGUITest:
+ Collaboration diagram for ilTestResultsGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testObjectiveParent ()
 
 testTestObj ()
 
 testQuestionSetConfig ()
 
 testTestAccess ()
 
 testTestSession ()
 
 testTestTabs ()
 

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

ilTestResultsGUI $testObj
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestResultsGUITest::setUp ( )
protected

Definition at line 29 of file ilTestResultsGUITest.php.

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

29  : void
30  {
31  global $DIC;
32  parent::setUp();
33 
34  $this->addGlobal_ilCtrl();
35  $this->addGlobal_ilAccess();
36  $this->addGlobal_ilUser();
37  $this->addGlobal_lng();
40  $this->addGlobal_ilTabs();
41  $this->addGlobal_ilToolbar();
42  $this->addGlobal_tpl();
43  $this->addGlobal_uiFactory();
44  $this->addGlobal_uiRenderer();
45  $this->addGlobal_http();
46 
47  $this->testObj = new ilTestResultsGUI(
48  $this->createMock(ilObjTest::class),
49  $this->createMock(ilTestQuestionSetConfig::class),
50  $DIC['ilCtrl'],
51  $DIC['ilAccess'],
52  $DIC['ilDB'],
53  $DIC['refinery'],
54  $DIC['ilUser'],
55  $DIC['lng'],
56  $this->createMock(\ILIAS\DI\LoggingServices::class),
57  $DIC['component.repository'],
58  $DIC['ilTabs'],
59  $DIC['ilToolbar'],
60  $DIC['tpl'],
61  $DIC['ui.factory'],
62  $DIC['ui.renderer'],
63  $this->createMock(ILIAS\Skill\Service\SkillService::class),
64  $this->createMock(ILIAS\Test\InternalRequestService::class),
65  $this->createMock(\ILIAS\TestQuestionPool\QuestionInfoService::class),
66  $DIC['http']
67  );
68  }
Class ChatMainBarProvider .
global $DIC
Definition: feed.php:28
Class HTTPServicesTest.
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()

ilTestResultsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 70 of file ilTestResultsGUITest.php.

70  : void
71  {
72  $this->assertInstanceOf(ilTestResultsGUI::class, $this->testObj);
73  }

◆ testObjectiveParent()

ilTestResultsGUITest::testObjectiveParent ( )

Definition at line 75 of file ilTestResultsGUITest.php.

75  : void
76  {
77  $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
78  $this->testObj->setObjectiveParent($mock);
79  $this->assertEquals($mock, $this->testObj->getObjectiveParent());
80  }

◆ testQuestionSetConfig()

ilTestResultsGUITest::testQuestionSetConfig ( )

Definition at line 89 of file ilTestResultsGUITest.php.

89  : void
90  {
91  $mock = $this->createMock(ilTestQuestionSetConfig::class);
92  $this->testObj->setQuestionSetConfig($mock);
93  $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
94  }

◆ testTestAccess()

ilTestResultsGUITest::testTestAccess ( )

Definition at line 96 of file ilTestResultsGUITest.php.

96  : void
97  {
98  $mock = $this->createMock(ilTestAccess::class);
99  $this->testObj->setTestAccess($mock);
100  $this->assertEquals($mock, $this->testObj->getTestAccess());
101  }

◆ testTestObj()

ilTestResultsGUITest::testTestObj ( )

Definition at line 82 of file ilTestResultsGUITest.php.

82  : void
83  {
84  $mock = $this->createMock(ilObjTest::class);
85  $this->testObj->setTestObj($mock);
86  $this->assertEquals($mock, $this->testObj->getTestObj());
87  }

◆ testTestSession()

ilTestResultsGUITest::testTestSession ( )

Definition at line 103 of file ilTestResultsGUITest.php.

103  : void
104  {
105  $mock = $this->createMock(ilTestSession::class);
106  $this->testObj->setTestSession($mock);
107  $this->assertEquals($mock, $this->testObj->getTestSession());
108  }

◆ testTestTabs()

ilTestResultsGUITest::testTestTabs ( )

Definition at line 110 of file ilTestResultsGUITest.php.

110  : void
111  {
112  $mock = $this->createMock(ilTestTabsManager::class);
113  $this->testObj->setTestTabs($mock);
114  $this->assertEquals($mock, $this->testObj->getTestTabs());
115  }

Field Documentation

◆ $testObj

ilTestResultsGUI ilTestResultsGUITest::$testObj
private

Definition at line 27 of file ilTestResultsGUITest.php.


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