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

Class ilTestParticipantsGUITest. 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_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

ilTestParticipantsGUI $testObj
 
 $backup_dic
 

Additional Inherited Members

- Protected Attributes inherited from ilTestBaseTestCase
Container $dic = null
 

Detailed Description

Member Function Documentation

◆ setUp()

ilTestParticipantsGUITest::setUp ( )
protected

Definition at line 33 of file ilTestParticipantsGUITest.php.

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

33  : void
34  {
35  global $DIC;
36  parent::setUp();
37  $this->addGlobal_ilAccess();
38  $this->addGlobal_tpl();
39  $this->addGlobal_uiFactory();
40  $this->addGlobal_uiRenderer();
41  $this->addGlobal_lng();
42  $this->addGlobal_ilCtrl();
43  $this->addGlobal_ilTabs();
44  $this->addGlobal_ilToolbar();
45 
46  $this->testObj = new ilTestParticipantsGUI(
47  $this->createMock(ilObjTest::class),
48  $this->createMock(ilTestQuestionSetConfig::class),
49  $DIC['ilAccess'],
50  $DIC['tpl'],
51  $DIC['ui.factory'],
52  $DIC['ui.renderer'],
53  $DIC['lng'],
54  $DIC['ilCtrl'],
55  $DIC['ilDB'],
56  $DIC['ilTabs'],
57  $DIC['ilToolbar'],
58  $this->createMock(\ILIAS\Test\InternalRequestService::class)
59  );
60  }
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:

◆ tearDown()

ilTestParticipantsGUITest::tearDown ( )
protected

Definition at line 62 of file ilTestParticipantsGUITest.php.

References $backup_dic, and $DIC.

62  : void
63  {
64  global $DIC;
65  $DIC = $this->backup_dic;
66  }
global $DIC
Definition: feed.php:28

◆ test_instantiateObject_shouldReturnInstance()

ilTestParticipantsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 68 of file ilTestParticipantsGUITest.php.

68  : void
69  {
70  $this->assertInstanceOf(ilTestParticipantsGUI::class, $this->testObj);
71  }

◆ testObjectiveParent()

ilTestParticipantsGUITest::testObjectiveParent ( )

Definition at line 87 of file ilTestParticipantsGUITest.php.

87  : void
88  {
89  $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
90  $this->testObj->setObjectiveParent($mock);
91  $this->assertEquals($mock, $this->testObj->getObjectiveParent());
92  }

◆ testQuestionSetConfig()

ilTestParticipantsGUITest::testQuestionSetConfig ( )

Definition at line 80 of file ilTestParticipantsGUITest.php.

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

◆ testTestAccess()

ilTestParticipantsGUITest::testTestAccess ( )

Definition at line 94 of file ilTestParticipantsGUITest.php.

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

◆ testTestObj()

ilTestParticipantsGUITest::testTestObj ( )

Definition at line 73 of file ilTestParticipantsGUITest.php.

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

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: