ILIAS  release_8 Revision v8.24
ilTestResultsGUITest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 ()
 
 tearDown ()
 
- 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_ilCtrl ()
 
 addGlobal_lng ()
 
 addGlobal_filesystem ()
 
 addGlobal_upload ()
 
 addGlobal_ilDB ()
 
 addGlobal_ilLog ()
 
 addGlobal_ilias ()
 
 addGlobal_ilErr ()
 
 addGlobal_ilAppEventHandler ()
 
 addGlobal_tpl ()
 
 addGlobal_ilComponentRepository ()
 
 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 ()
 

Private Attributes

ilTestResultsGUI $testObj
 
 $backup_dic
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestResultsGUITest

Author
Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de

Definition at line 25 of file ilTestResultsGUITest.php.

Member Function Documentation

◆ setUp()

ilTestResultsGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 33 of file ilTestResultsGUITest.php.

33 : void
34 {
35 parent::setUp();
36 global $DIC;
37
38 $this->backup_dic = $DIC;
40 'tpl' => $this->getMockBuilder(ilGlobalTemplateInterface::class)
41 ->getMock()
42 ]);
43 $this->addGlobal_lng();
44
45 $this->testObj = new ilTestResultsGUI(
46 $this->createMock(ilObjTest::class),
47 $this->createMock(ilTestQuestionSetConfig::class)
48 );
49 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
global $DIC
Definition: feed.php:28

References $DIC, and ilTestBaseTestCase\addGlobal_lng().

+ Here is the call graph for this function:

◆ tearDown()

ilTestResultsGUITest::tearDown ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 51 of file ilTestResultsGUITest.php.

51 : void
52 {
53 global $DIC;
55 }

References $backup_dic, and $DIC.

◆ test_instantiateObject_shouldReturnInstance()

ilTestResultsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 57 of file ilTestResultsGUITest.php.

57 : void
58 {
59 $this->assertInstanceOf(ilTestResultsGUI::class, $this->testObj);
60 }

◆ testObjectiveParent()

ilTestResultsGUITest::testObjectiveParent ( )

Definition at line 62 of file ilTestResultsGUITest.php.

62 : void
63 {
64 $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
65 $this->testObj->setObjectiveParent($mock);
66 $this->assertEquals($mock, $this->testObj->getObjectiveParent());
67 }

◆ testQuestionSetConfig()

ilTestResultsGUITest::testQuestionSetConfig ( )

Definition at line 76 of file ilTestResultsGUITest.php.

76 : void
77 {
78 $mock = $this->createMock(ilTestQuestionSetConfig::class);
79 $this->testObj->setQuestionSetConfig($mock);
80 $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
81 }

◆ testTestAccess()

ilTestResultsGUITest::testTestAccess ( )

Definition at line 83 of file ilTestResultsGUITest.php.

83 : void
84 {
85 $mock = $this->createMock(ilTestAccess::class);
86 $this->testObj->setTestAccess($mock);
87 $this->assertEquals($mock, $this->testObj->getTestAccess());
88 }

◆ testTestObj()

ilTestResultsGUITest::testTestObj ( )

Definition at line 69 of file ilTestResultsGUITest.php.

69 : void
70 {
71 $mock = $this->createMock(ilObjTest::class);
72 $this->testObj->setTestObj($mock);
73 $this->assertEquals($mock, $this->testObj->getTestObj());
74 }

◆ testTestSession()

ilTestResultsGUITest::testTestSession ( )

Definition at line 90 of file ilTestResultsGUITest.php.

90 : void
91 {
92 $mock = $this->createMock(ilTestSession::class);
93 $this->testObj->setTestSession($mock);
94 $this->assertEquals($mock, $this->testObj->getTestSession());
95 }

◆ testTestTabs()

ilTestResultsGUITest::testTestTabs ( )

Definition at line 97 of file ilTestResultsGUITest.php.

97 : void
98 {
99 $mock = $this->createMock(ilTestTabsManager::class);
100 $this->testObj->setTestTabs($mock);
101 $this->assertEquals($mock, $this->testObj->getTestTabs());
102 }

Field Documentation

◆ $backup_dic

ilTestResultsGUITest::$backup_dic
private

Definition at line 31 of file ilTestResultsGUITest.php.

Referenced by tearDown().

◆ $testObj

ilTestResultsGUI ilTestResultsGUITest::$testObj
private

Definition at line 27 of file ilTestResultsGUITest.php.


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