ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
assMultipleChoiceTest 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 assMultipleChoiceTest:
+ Collaboration diagram for assMultipleChoiceTest:

Public Member Functions

 test_getThumbPrefix_shouldReturnString ()
 
 test_getQuestionType_shouldReturnQuestionType ()
 
 test_getAdditionalTableName_shouldReturnAdditionalTableName ()
 
 test_getAnswerTableName_shouldReturnAnswerTableName ()
 

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 for single choice questions

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 28 of file assMultipleChoiceTest.php.

Member Function Documentation

◆ setUp()

assMultipleChoiceTest::setUp ( )
protected

Definition at line 32 of file assMultipleChoiceTest.php.

32  : void
33  {
34  parent::setUp();
35  $this->setGlobalVariable('ilias', $this->getIliasMock());
36  }

◆ test_getAdditionalTableName_shouldReturnAdditionalTableName()

assMultipleChoiceTest::test_getAdditionalTableName_shouldReturnAdditionalTableName ( )

Definition at line 85 of file assMultipleChoiceTest.php.

85  : void
86  {
87  $obj = new assMultipleChoice();
88  $this->assertEquals('qpl_qst_mc', $obj->getAdditionalTableName());
89  }
Class for multiple choice tests.

◆ test_getAnswerTableName_shouldReturnAnswerTableName()

assMultipleChoiceTest::test_getAnswerTableName_shouldReturnAnswerTableName ( )

Definition at line 91 of file assMultipleChoiceTest.php.

91  : void
92  {
93  $obj = new assMultipleChoice();
94  $this->assertEquals('qpl_a_mc', $obj->getAnswerTableName());
95  }
Class for multiple choice tests.

◆ test_getQuestionType_shouldReturnQuestionType()

assMultipleChoiceTest::test_getQuestionType_shouldReturnQuestionType ( )

Definition at line 79 of file assMultipleChoiceTest.php.

79  : void
80  {
81  $obj = new assMultipleChoice();
82  $this->assertEquals('assMultipleChoice', $obj->getQuestionType());
83  }
Class for multiple choice tests.

◆ test_getThumbPrefix_shouldReturnString()

assMultipleChoiceTest::test_getThumbPrefix_shouldReturnString ( )

Definition at line 51 of file assMultipleChoiceTest.php.

51  : void
52  {
53  $obj = new assMultipleChoice();
54  $this->assertEquals('thumb.', $obj->getThumbPrefix());
55  }
Class for multiple choice tests.

Field Documentation

◆ $backupGlobals

assMultipleChoiceTest::$backupGlobals = false
protected

Definition at line 30 of file assMultipleChoiceTest.php.


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