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

Public Member Functions

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

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

ilTestParticipantsGUI $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 ilTestParticipantsGUITest

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

Definition at line 25 of file ilTestParticipantsGUITest.php.

Member Function Documentation

◆ setUp()

ilTestParticipantsGUITest::setUp ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 33 of file ilTestParticipantsGUITest.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->testObj = new ilTestParticipantsGUI(
44 $this->createMock(ilObjTest::class),
45 $this->createMock(ilTestQuestionSetConfig::class)
46 );
47 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
global $DIC
Definition: feed.php:28

References $DIC.

◆ tearDown()

ilTestParticipantsGUITest::tearDown ( )
protected

Reimplemented from ilTestBaseTestCase.

Definition at line 49 of file ilTestParticipantsGUITest.php.

49 : void
50 {
51 global $DIC;
53 }

References $backup_dic, and $DIC.

◆ test_instantiateObject_shouldReturnInstance()

ilTestParticipantsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 55 of file ilTestParticipantsGUITest.php.

55 : void
56 {
57 $this->assertInstanceOf(ilTestParticipantsGUI::class, $this->testObj);
58 }

◆ testObjectiveParent()

ilTestParticipantsGUITest::testObjectiveParent ( )

Definition at line 74 of file ilTestParticipantsGUITest.php.

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

◆ testQuestionSetConfig()

ilTestParticipantsGUITest::testQuestionSetConfig ( )

Definition at line 67 of file ilTestParticipantsGUITest.php.

67 : void
68 {
69 $mock = $this->createMock(ilTestQuestionSetConfig::class);
70 $this->testObj->setQuestionSetConfig($mock);
71 $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
72 }

◆ testTestAccess()

ilTestParticipantsGUITest::testTestAccess ( )

Definition at line 81 of file ilTestParticipantsGUITest.php.

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

◆ testTestObj()

ilTestParticipantsGUITest::testTestObj ( )

Definition at line 60 of file ilTestParticipantsGUITest.php.

60 : void
61 {
62 $mock = $this->createMock(ilObjTest::class);
63 $this->testObj->setTestObj($mock);
64 $this->assertEquals($mock, $this->testObj->getTestObj());
65 }

Field Documentation

◆ $backup_dic

ilTestParticipantsGUITest::$backup_dic
private

Definition at line 31 of file ilTestParticipantsGUITest.php.

Referenced by tearDown().

◆ $testObj

ilTestParticipantsGUI ilTestParticipantsGUITest::$testObj
private

Definition at line 27 of file ilTestParticipantsGUITest.php.


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