ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilParticipantsTestResultsGUITest 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 ilParticipantsTestResultsGUITest:
+ Collaboration diagram for ilParticipantsTestResultsGUITest:

Public Member Functions

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

ilParticipantsTestResultsGUI $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 ilParticipantsTestResultsGUITest

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

Definition at line 25 of file ilParticipantsTestResultsGUITest.php.

Member Function Documentation

◆ setUp()

ilParticipantsTestResultsGUITest::setUp ( )
protected

Definition at line 29 of file ilParticipantsTestResultsGUITest.php.

References ilTestBaseTestCase\addGlobal_http(), ilTestBaseTestCase\addGlobal_ilCtrl(), ilTestBaseTestCase\addGlobal_ilDB(), ilTestBaseTestCase\addGlobal_ilLoggerFactory(), ilTestBaseTestCase\addGlobal_ilTabs(), ilTestBaseTestCase\addGlobal_ilToolbar(), ilTestBaseTestCase\addGlobal_lng(), ilTestBaseTestCase\addGlobal_refinery(), and ilTestBaseTestCase\addGlobal_tpl().

29  : void
30  {
31  parent::setUp();
32 
33  $this->addGlobal_tpl();
35  $this->addGlobal_http();
36  $this->addGlobal_refinery();
37  $this->addGlobal_ilCtrl();
38  $this->addGlobal_lng();
39  $this->addGlobal_ilDB();
40  $this->addGlobal_ilTabs();
41  $this->addGlobal_ilToolbar();
42  $this->testObj = new ilParticipantsTestResultsGUI();
43  }
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()

ilParticipantsTestResultsGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 45 of file ilParticipantsTestResultsGUITest.php.

45  : void
46  {
47  $this->assertInstanceOf(ilParticipantsTestResultsGUI::class, $this->testObj);
48  }

◆ testObjectiveParent()

ilParticipantsTestResultsGUITest::testObjectiveParent ( )

Definition at line 80 of file ilParticipantsTestResultsGUITest.php.

80  : void
81  {
82  $objectiveParent_mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
83 
84  $this->assertNull($this->testObj->getObjectiveParent());
85 
86  $this->testObj->setObjectiveParent($objectiveParent_mock);
87  $this->assertEquals($objectiveParent_mock, $this->testObj->getObjectiveParent());
88  }

◆ testQuestionSetConfig()

ilParticipantsTestResultsGUITest::testQuestionSetConfig ( )

Definition at line 60 of file ilParticipantsTestResultsGUITest.php.

60  : void
61  {
62  $testQuestionSetConfig_mock = $this->createMock(ilTestQuestionSetConfig::class);
63 
64  $this->assertNull($this->testObj->getQuestionSetConfig());
65 
66  $this->testObj->setQuestionSetConfig($testQuestionSetConfig_mock);
67  $this->assertEquals($testQuestionSetConfig_mock, $this->testObj->getQuestionSetConfig());
68  }

◆ testTestAccess()

ilParticipantsTestResultsGUITest::testTestAccess ( )

Definition at line 70 of file ilParticipantsTestResultsGUITest.php.

70  : void
71  {
72  $testAccess_mock = $this->createMock(ilTestAccess::class);
73 
74  $this->assertNull($this->testObj->getTestAccess());
75 
76  $this->testObj->setTestAccess($testAccess_mock);
77  $this->assertEquals($testAccess_mock, $this->testObj->getTestAccess());
78  }

◆ testTestObj()

ilParticipantsTestResultsGUITest::testTestObj ( )

Definition at line 50 of file ilParticipantsTestResultsGUITest.php.

50  : void
51  {
52  $objTest_mock = $this->createMock(ilObjTest::class);
53 
54  $this->assertNull($this->testObj->getTestObj());
55 
56  $this->testObj->setTestObj($objTest_mock);
57  $this->assertEquals($objTest_mock, $this->testObj->getTestObj());
58  }

Field Documentation

◆ $testObj

ilParticipantsTestResultsGUI ilParticipantsTestResultsGUITest::$testObj
private

Definition at line 27 of file ilParticipantsTestResultsGUITest.php.


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