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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 testTestObj ()
 

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

ilTestParticipantsTimeExtensionGUI $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 ilTestParticipantsTimeExtensionGUITest

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

Definition at line 25 of file ilTestParticipantsTimeExtensionGUITest.php.

Member Function Documentation

◆ setUp()

ilTestParticipantsTimeExtensionGUITest::setUp ( )
protected

Definition at line 30 of file ilTestParticipantsTimeExtensionGUITest.php.

References $DIC.

30  : void
31  {
32  parent::setUp();
33  global $DIC;
34 
35  $this->backup_dic = $DIC;
36  $DIC = new ILIAS\DI\Container([
37  'tpl' => $this->getMockBuilder(ilGlobalTemplateInterface::class)
38  ->getMock(),
39 
40  'ilCtrl' => $this->getMockBuilder(ilCtrl::class)
41  ->disableOriginalConstructor()
42  ->getMock(),
43 
44  'lng' => $this->getMockBuilder(ilLanguage::class)
45  ->disableOriginalConstructor()
46  ->getMock()
47  ]);
48  $this->testObj = new ilTestParticipantsTimeExtensionGUI($this->createMock(ilObjTest::class));
49  }
global $DIC
Definition: feed.php:28

◆ tearDown()

ilTestParticipantsTimeExtensionGUITest::tearDown ( )
protected

Definition at line 51 of file ilTestParticipantsTimeExtensionGUITest.php.

References $backup_dic, and $DIC.

51  : void
52  {
53  global $DIC;
54  $DIC = $this->backup_dic;
55  }
global $DIC
Definition: feed.php:28

◆ test_instantiateObject_shouldReturnInstance()

ilTestParticipantsTimeExtensionGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 57 of file ilTestParticipantsTimeExtensionGUITest.php.

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

◆ testTestObj()

ilTestParticipantsTimeExtensionGUITest::testTestObj ( )

Definition at line 62 of file ilTestParticipantsTimeExtensionGUITest.php.

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

Field Documentation

◆ $backup_dic

ilTestParticipantsTimeExtensionGUITest::$backup_dic
private

Definition at line 28 of file ilTestParticipantsTimeExtensionGUITest.php.

Referenced by tearDown().

◆ $testObj

ilTestParticipantsTimeExtensionGUI ilTestParticipantsTimeExtensionGUITest::$testObj
private

Definition at line 27 of file ilTestParticipantsTimeExtensionGUITest.php.


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