ILIAS  release_8 Revision v8.24
ilMyTestResultsGUITest 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 ilMyTestResultsGUITest:
+ Collaboration diagram for ilMyTestResultsGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestObj ()
 
 testTestAccess ()
 
 testTestSession ()
 
 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_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

ilMyTestResultsGUI $testObj
 

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 ilMyTestResultsGUITest

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

Definition at line 25 of file ilMyTestResultsGUITest.php.

Member Function Documentation

◆ setUp()

ilMyTestResultsGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 29 of file ilMyTestResultsGUITest.php.

29 : void
30 {
31 parent::setUp();
32
33 $this->testObj = new ilMyTestResultsGUI();
34 }

◆ test_instantiateObject_shouldReturnInstance()

ilMyTestResultsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file ilMyTestResultsGUITest.php.

36 : void
37 {
38 $this->assertInstanceOf(ilMyTestResultsGUI::class, $this->testObj);
39 }

◆ testObjectiveParent()

ilMyTestResultsGUITest::testObjectiveParent ( )

Definition at line 65 of file ilMyTestResultsGUITest.php.

65 : void
66 {
67 $obj_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
68 $this->testObj->setObjectiveParent($obj_mock);
69
70 $this->assertEquals($obj_mock, $this->testObj->getObjectiveParent());
71 }

◆ testTestAccess()

ilMyTestResultsGUITest::testTestAccess ( )

Definition at line 49 of file ilMyTestResultsGUITest.php.

49 : void
50 {
51 $obj_mock = $this->createMock(ilTestAccess::class);
52 $this->testObj->setTestAccess($obj_mock);
53
54 $this->assertEquals($obj_mock, $this->testObj->getTestAccess());
55 }

◆ testTestObj()

ilMyTestResultsGUITest::testTestObj ( )

Definition at line 41 of file ilMyTestResultsGUITest.php.

41 : void
42 {
43 $obj_mock = $this->createMock(ilObjTest::class);
44 $this->testObj->setTestObj($obj_mock);
45
46 $this->assertEquals($obj_mock, $this->testObj->getTestObj());
47 }

◆ testTestSession()

ilMyTestResultsGUITest::testTestSession ( )

Definition at line 57 of file ilMyTestResultsGUITest.php.

57 : void
58 {
59 $obj_mock = $this->createMock(ilTestSession::class);
60 $this->testObj->setTestSession($obj_mock);
61
62 $this->assertEquals($obj_mock, $this->testObj->getTestSession());
63 }

Field Documentation

◆ $testObj

ilMyTestResultsGUI ilMyTestResultsGUITest::$testObj
private

Definition at line 27 of file ilMyTestResultsGUITest.php.


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