ILIAS  trunk Revision v5.2.0beta1-34115-g3a2438be29
assFileUploadGUITest 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 assFileUploadGUITest:
+ Collaboration diagram for assFileUploadGUITest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 getIRSSMock ()
 
 getFileDeliveryMock ()
 

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 assFileUploadGUITest.php.

Member Function Documentation

◆ setUp()

assFileUploadGUITest::setUp ( )
protected

Definition at line 30 of file assFileUploadGUITest.php.

References assBaseTestCase\getFileDeliveryMock(), and assBaseTestCase\getIRSSMock().

30  : void
31  {
32  parent::setUp();
33 
34  $this->setGlobalVariable('ilLog', $this->createMock(ilLogger::class));
35 
36  $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)
37  ->disableOriginalConstructor()
38  ->getMock();
39  $ilCtrl_mock->method('saveParameter');
40  $ilCtrl_mock->method('saveParameterByClass');
41  $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
42 
43  $lng_mock = $this->getMockBuilder(ilLanguage::class)
44  ->disableOriginalConstructor()
45  ->onlyMethods(['txt'])
46  ->getMock();
47  $lng_mock->method('txt')->will($this->returnValue('Test'));
48  $this->setGlobalVariable('lng', $lng_mock);
49 
50  $this->setGlobalVariable('ilias', $this->getIliasMock());
51  $this->setGlobalVariable('ilDB', $this->getDatabaseMock());
52  $this->setGlobalVariable('resource_storage', $this->getIRSSMock());
53  $this->setGlobalVariable('file_delivery', $this->getFileDeliveryMock());
54  }
+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

assFileUploadGUITest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 56 of file assFileUploadGUITest.php.

56  : void
57  {
58  $instance = new assFileUploadGUI();
59 
60  $this->assertInstanceOf(assFileUploadGUI::class, $instance);
61  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $backupGlobals

assFileUploadGUITest::$backupGlobals = false
protected

Definition at line 28 of file assFileUploadGUITest.php.


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