Unit tests.
More...
◆ setUp()
assAnswerOrderingTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerOrderingTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assAnswerOrderingTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 29 of file assAnswerOrderingTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
37 $this->assertInstanceOf(
'ilAssOrderingElement', $instance);
◆ test_setGetAnswerId()
assAnswerOrderingTest::test_setGetAnswerId |
( |
| ) |
|
Definition at line 55 of file assAnswerOrderingTest.php.
58 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
63 $instance->setId($expected);
64 $actual = $instance->getId();
67 $this->assertEquals($expected, $actual);
◆ test_setGetOrdeingDepth()
assAnswerOrderingTest::test_setGetOrdeingDepth |
( |
| ) |
|
Definition at line 71 of file assAnswerOrderingTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
79 $instance->setIndentation($expected);
80 $actual = $instance->getIndentation();
83 $this->assertEquals($expected, $actual);
◆ test_setGetRandomId()
assAnswerOrderingTest::test_setGetRandomId |
( |
| ) |
|
Definition at line 40 of file assAnswerOrderingTest.php.
43 require_once
'./Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
48 $instance->setRandomIdentifier($expected);
49 $actual = $instance->getRandomIdentifier();
52 $this->assertEquals($expected, $actual);
◆ $backupGlobals
assAnswerOrderingTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: