Unit tests.
More...
◆ setUp()
assAnswerOrderingTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerOrderingTest.php.
16 {
17 if (defined('ILIAS_PHPUNIT_CONTEXT')) {
18 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
20 } else {
21 chdir(dirname(__FILE__));
22 chdir('../../../');
23 }
24 }
◆ test_instantiateObject_shouldReturnInstance()
assAnswerOrderingTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 26 of file assAnswerOrderingTest.php.
27 {
28
29 require_once './Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
30
31
33
34 $this->assertInstanceOf('ilAssOrderingElement', $instance);
35 }
◆ test_setGetAnswerId()
assAnswerOrderingTest::test_setGetAnswerId |
( |
| ) |
|
Definition at line 52 of file assAnswerOrderingTest.php.
53 {
54
55 require_once './Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
57 $expected = 13579;
58
59
60 $instance->setId($expected);
61 $actual = $instance->getId();
62
63
64 $this->assertEquals($expected, $actual);
65 }
◆ test_setGetOrdeingDepth()
assAnswerOrderingTest::test_setGetOrdeingDepth |
( |
| ) |
|
Definition at line 68 of file assAnswerOrderingTest.php.
69 {
70
71 require_once './Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
73 $expected = 13579;
74
75
76 $instance->setIndentation($expected);
77 $actual = $instance->getIndentation();
78
79
80 $this->assertEquals($expected, $actual);
81 }
◆ test_setGetRandomId()
assAnswerOrderingTest::test_setGetRandomId |
( |
| ) |
|
Definition at line 37 of file assAnswerOrderingTest.php.
38 {
39
40 require_once './Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElement.php';
42 $expected = 13579;
43
44
45 $instance->setRandomIdentifier($expected);
46 $actual = $instance->getRandomIdentifier();
47
48
49 $this->assertEquals($expected, $actual);
50 }
◆ $backupGlobals
assAnswerOrderingTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: