ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 ()
 
 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 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.

References assBaseTestCase\getGlobalTemplateMock(), assBaseTestCase\getIliasMock(), and assBaseTestCase\setGlobalVariable().

32  : void
33  {
34  parent::setUp();
35  $this->setGlobalVariable('ilias', $this->getIliasMock());
36  $this->setGlobalVariable('tpl', $this->getGlobalTemplateMock());
37  }
setGlobalVariable(string $name, $value)
+ Here is the call graph for this function:

◆ test_getAdditionalTableName_shouldReturnAdditionalTableName()

assMultipleChoiceTest::test_getAdditionalTableName_shouldReturnAdditionalTableName ( )

Definition at line 86 of file assMultipleChoiceTest.php.

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

◆ test_getAnswerTableName_shouldReturnAnswerTableName()

assMultipleChoiceTest::test_getAnswerTableName_shouldReturnAnswerTableName ( )

Definition at line 92 of file assMultipleChoiceTest.php.

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

◆ test_getQuestionType_shouldReturnQuestionType()

assMultipleChoiceTest::test_getQuestionType_shouldReturnQuestionType ( )

Definition at line 80 of file assMultipleChoiceTest.php.

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

◆ test_getThumbPrefix_shouldReturnString()

assMultipleChoiceTest::test_getThumbPrefix_shouldReturnString ( )

Definition at line 52 of file assMultipleChoiceTest.php.

52  : void
53  {
54  $obj = new assMultipleChoice();
55  $this->assertEquals('thumb.', $obj->getThumbPrefix());
56  }
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: