ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assTextSubsetTest 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 assTextSubsetTest:
+ Collaboration diagram for assTextSubsetTest:

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 

Protected Member Functions

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

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

Member Function Documentation

◆ setUp()

assTextSubsetTest::setUp ( )
protected

Reimplemented from assBaseTestCase.

Definition at line 30 of file assTextSubsetTest.php.

30 : void
31 {
32 chdir(__DIR__ . '/../../../../');
33
34 parent::setUp();
35
36 $ilCtrl_mock = $this->createMock('ilCtrl');
37 $ilCtrl_mock->expects($this->any())->method('saveParameter');
38 $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
39 $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
40
41 $lng_mock = $this->createMock('ilLanguage', ['txt'], [], '', false);
42 $this->setGlobalVariable('lng', $lng_mock);
43
44 $this->setGlobalVariable('ilias', $this->getIliasMock());
45 $this->setGlobalVariable('ilDB', $this->getDatabaseMock());
46 }
setGlobalVariable(string $name, mixed $value)

References getDatabaseMock(), getIliasMock(), and setGlobalVariable().

+ Here is the call graph for this function:

◆ test_instantiateObject_shouldReturnInstance()

assTextSubsetTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 48 of file assTextSubsetTest.php.

48 : void
49 {
50 $instance = new assTextSubset();
51
52 $this->assertInstanceOf(assTextSubset::class, $instance);
53 }
Class for TextSubset questions.

Field Documentation

◆ $backupGlobals

assTextSubsetTest::$backupGlobals = false
protected

Definition at line 28 of file assTextSubsetTest.php.


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