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

Public Member Functions

 test_instantiateObjectSimple ()
 
 test_setGetText ()
 
 test_setGetPicture ()
 
 test_getUnsetPicture ()
 
 test_setGetIdentifier ()
 

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

Member Function Documentation

◆ setUp()

assAnswerMatchingTermTest::setUp ( )
protected

Definition at line 30 of file assAnswerMatchingTermTest.php.

30  : void
31  {
32  chdir(dirname(__FILE__));
33  chdir('../../../');
34  }

◆ test_getUnsetPicture()

assAnswerMatchingTermTest::test_getUnsetPicture ( )

Definition at line 71 of file assAnswerMatchingTermTest.php.

71  : void
72  {
73  $instance = new assAnswerMatchingTerm();
74  $expected = null;
75 
76  // Act
77  $actual = $instance->getPicture();
78 
79  // Assert
80  $this->assertEquals($expected, $actual);
81  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_instantiateObjectSimple()

assAnswerMatchingTermTest::test_instantiateObjectSimple ( )

Definition at line 36 of file assAnswerMatchingTermTest.php.

36  : void
37  {
38  // Act
39  $instance = new assAnswerMatchingTerm();
40 
41  // Assert
42  $this->assertInstanceOf('assAnswerMatchingTerm', $instance);
43  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetIdentifier()

assAnswerMatchingTermTest::test_setGetIdentifier ( )

Definition at line 83 of file assAnswerMatchingTermTest.php.

83  : void
84  {
85  $instance = new assAnswerMatchingTerm();
86  $expected = 12345;
87 
88  // Act
89  $instance = $instance->withIdentifier($expected);
90  $actual = $instance->getIdentifier();
91 
92  // Assert
93  $this->assertEquals($expected, $actual);
94  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetPicture()

assAnswerMatchingTermTest::test_setGetPicture ( )

Definition at line 58 of file assAnswerMatchingTermTest.php.

58  : void
59  {
60  $instance = new assAnswerMatchingTerm();
61  $expected = 'path/to/picture?';
62 
63  // Act
64  $instance = $instance->withPicture($expected);
65  $actual = $instance->getPicture();
66 
67  // Assert
68  $this->assertEquals($expected, $actual);
69  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetText()

assAnswerMatchingTermTest::test_setGetText ( )

Definition at line 45 of file assAnswerMatchingTermTest.php.

45  : void
46  {
47  $instance = new assAnswerMatchingTerm();
48  $expected = 'Text';
49 
50  // Act
51  $instance = $instance->withText($expected);
52  $actual = $instance->getText();
53 
54  // Assert
55  $this->assertEquals($expected, $actual);
56  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $backupGlobals

assAnswerMatchingTermTest::$backupGlobals = false
protected

Definition at line 28 of file assAnswerMatchingTermTest.php.


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