Unit tests.
More...
◆ setUp()
assAnswerOrderingTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 14 of file assAnswerOrderingTest.php.
16 if (defined(
'ILIAS_PHPUNIT_CONTEXT')) {
17 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
18 ilUnitUtil::performInitialisation();
20 chdir(dirname(__FILE__));
◆ test_instantiateObject_shouldReturnInstance()
assAnswerOrderingTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 25 of file assAnswerOrderingTest.php.
28 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
33 $this->assertInstanceOf(
'ilAssOrderingElement', $instance);
◆ test_setGetAnswerId()
assAnswerOrderingTest::test_setGetAnswerId |
( |
| ) |
|
Definition at line 51 of file assAnswerOrderingTest.php.
54 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
59 $instance->setId($expected);
60 $actual = $instance->getId();
63 $this->assertEquals($expected, $actual);
◆ test_setGetOrdeingDepth()
assAnswerOrderingTest::test_setGetOrdeingDepth |
( |
| ) |
|
Definition at line 67 of file assAnswerOrderingTest.php.
70 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
75 $instance->setIndentation($expected);
76 $actual = $instance->getIndentation();
79 $this->assertEquals($expected, $actual);
◆ test_setGetRandomId()
assAnswerOrderingTest::test_setGetRandomId |
( |
| ) |
|
Definition at line 36 of file assAnswerOrderingTest.php.
39 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
44 $instance->setRandomIdentifier($expected);
45 $actual = $instance->getRandomIdentifier();
48 $this->assertEquals($expected, $actual);
◆ $backupGlobals
assAnswerOrderingTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: