Unit tests.
More...
◆ setUp()
assAnswerOrderingTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerOrderingTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assAnswerOrderingTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 26 of file assAnswerOrderingTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
34 $this->assertInstanceOf(
'ilAssOrderingElement', $instance);
◆ test_setGetAnswerId()
assAnswerOrderingTest::test_setGetAnswerId |
( |
| ) |
|
Definition at line 52 of file assAnswerOrderingTest.php.
55 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
60 $instance->setId($expected);
61 $actual = $instance->getId();
64 $this->assertEquals($expected, $actual);
◆ test_setGetOrdeingDepth()
assAnswerOrderingTest::test_setGetOrdeingDepth |
( |
| ) |
|
Definition at line 68 of file assAnswerOrderingTest.php.
71 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
76 $instance->setIndentation($expected);
77 $actual = $instance->getIndentation();
80 $this->assertEquals($expected, $actual);
◆ test_setGetRandomId()
assAnswerOrderingTest::test_setGetRandomId |
( |
| ) |
|
Definition at line 37 of file assAnswerOrderingTest.php.
40 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
45 $instance->setRandomIdentifier($expected);
46 $actual = $instance->getRandomIdentifier();
49 $this->assertEquals($expected, $actual);
◆ $backupGlobals
assAnswerOrderingTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: