ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
assNumericGUITest 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 assNumericGUITest:
+ Collaboration diagram for assNumericGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIRSSMock ()
 
 getFileDeliveryMock ()
 
 getIliasMock ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from assBaseTestCase
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 Unit tests

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

Definition at line 26 of file assNumericGUITest.php.

Member Function Documentation

◆ setUp()

assNumericGUITest::setUp ( )
protected

Definition at line 30 of file assNumericGUITest.php.

References assBaseTestCase\getGlobalTemplateMock(), and assBaseTestCase\setGlobalVariable().

30  : void
31  {
32  parent::setUp();
33 
34  $this->setGlobalVariable('ilLog', $this->createMock(ilLogger::class));
35 
36  $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock();
37  $ilCtrl_mock->expects($this->any())->method('saveParameter');
38  $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
39  $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
40 
41  $ilias_mock = new stdClass();
42  $ilias_mock->account = new stdClass();
43  $ilias_mock->account->id = 6;
44  $ilias_mock->account->fullname = 'Esther Tester';
45  $this->setGlobalVariable('ilias', $ilias_mock);
46  $this->setGlobalVariable('tpl', $this->getGlobalTemplateMock());
47  }
setGlobalVariable(string $name, $value)
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

assNumericGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 49 of file assNumericGUITest.php.

49  : void
50  {
51  // Act
52  $instance = new assNumericGUI();
53 
54  $this->assertInstanceOf('assNumericGUI', $instance);
55  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $backupGlobals

assNumericGUITest::$backupGlobals = false
protected

Definition at line 28 of file assNumericGUITest.php.


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