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

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

Member Function Documentation

◆ setUp()

assSingleChoiceTest::setUp ( )
protected

Reimplemented from assBaseTestCase.

Definition at line 32 of file assSingleChoiceTest.php.

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

References getIliasMock(), and setGlobalVariable().

+ Here is the call graph for this function:

◆ test_getAdditionalTableName_shouldReturnAdditionalTableName()

assSingleChoiceTest::test_getAdditionalTableName_shouldReturnAdditionalTableName ( )

Definition at line 85 of file assSingleChoiceTest.php.

85 : void
86 {
87 $obj = new assSingleChoice();
88 $this->assertEquals('qpl_qst_sc', $obj->getAdditionalTableName());
89 }
Class for single choice questions.

◆ test_getAnswerTableName_shouldReturnAnswerTableName()

assSingleChoiceTest::test_getAnswerTableName_shouldReturnAnswerTableName ( )

Definition at line 91 of file assSingleChoiceTest.php.

91 : void
92 {
93 $obj = new assSingleChoice();
94 $this->assertEquals('qpl_a_sc', $obj->getAnswerTableName());
95 }

◆ test_getQuestionType_shouldReturnQuestionType()

assSingleChoiceTest::test_getQuestionType_shouldReturnQuestionType ( )

Definition at line 79 of file assSingleChoiceTest.php.

79 : void
80 {
81 $obj = new assSingleChoice();
82 $this->assertEquals('assSingleChoice', $obj->getQuestionType());
83 }

◆ test_getThumbPrefix_shouldReturnString()

assSingleChoiceTest::test_getThumbPrefix_shouldReturnString ( )

Definition at line 51 of file assSingleChoiceTest.php.

51 : void
52 {
53 $obj = new assSingleChoice();
54 $this->assertEquals('thumb.', $obj->getThumbPrefix());
55 }

Field Documentation

◆ $backupGlobals

assSingleChoiceTest::$backupGlobals = false
protected

Definition at line 30 of file assSingleChoiceTest.php.


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