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

Public Member Functions

 test_instantiateObject_shouldReturnInstance ()
 
 test_setGetImage ()
 

Protected Member Functions

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

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

Member Function Documentation

◆ setUp()

assAnswerBinaryStateImageTest::setUp ( )
protected

Definition at line 30 of file assAnswerBinaryStateImageTest.php.

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

◆ test_instantiateObject_shouldReturnInstance()

assAnswerBinaryStateImageTest::test_instantiateObject_shouldReturnInstance ( )

Definition at line 36 of file assAnswerBinaryStateImageTest.php.

36  : void
37  {
38  // Arrange
39  require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
40 
41  // Act
42  $instance = new ASS_AnswerBinaryStateImage();
43 
44  $this->assertInstanceOf('ASS_AnswerBinaryStateImage', $instance);
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetImage()

assAnswerBinaryStateImageTest::test_setGetImage ( )

Definition at line 47 of file assAnswerBinaryStateImageTest.php.

47  : void
48  {
49  // Arrange
50  require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryStateImage.php';
51  $instance = new ASS_AnswerBinaryStateImage();
52  $expected = 'image';
53  // Act
54  $instance->setImage($expected);
55  $actual = $instance->getImage();
56 
57  $this->assertEquals($expected, $actual);
58  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $backupGlobals

assAnswerBinaryStateImageTest::$backupGlobals = false
protected

Definition at line 28 of file assAnswerBinaryStateImageTest.php.


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