ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilModulesTestQuestionPoolSuite.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 
6 class ilModulesTestQuestionPoolSuite extends TestSuite
7 {
8  public static function suite()
9  {
10  if (defined('ILIAS_PHPUNIT_CONTEXT')) {
11  include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
12  ilUnitUtil::performInitialisation();
13  } else {
14  chdir(dirname(__FILE__));
15  chdir('../../../');
16  }
17 
18  require_once("./Modules/TestQuestionPool/test/assBaseTestCase.php");
19 
21 
22  // Questiontypes & related classes
23  // -------------------------------------------------------------------------------------------------------------
24 
25  // Type: Cloze
26  require_once("./Modules/TestQuestionPool/test/assClozeGapTest.php");
27  $suite->addTestSuite("assClozeGapTest");
28 
29  require_once("./Modules/TestQuestionPool/test/assClozeSelectGapTest.php");
30  $suite->addTestSuite("assClozeSelectGapTest");
31 
32  require_once("./Modules/TestQuestionPool/test/assClozeTestTest.php");
33  $suite->addTestSuite("assClozeTestTest");
34 
35  require_once("./Modules/TestQuestionPool/test/assClozeTestGUITest.php");
36  $suite->addTestSuite("assClozeTestGUITest");
37 
38  // Type: ErrorText
39  require_once("./Modules/TestQuestionPool/test/assErrorTextTest.php");
40  $suite->addTestSuite("assErrorTextTest");
41 
42  require_once("./Modules/TestQuestionPool/test/assErrorTextGUITest.php");
43  $suite->addTestSuite("assErrorTextGUITest");
44 
45  // Type: FileUpload
46  require_once("./Modules/TestQuestionPool/test/assFileUploadTest.php");
47  $suite->addTestSuite("assFileUploadTest");
48 
49  require_once("./Modules/TestQuestionPool/test/assFileUploadGUITest.php");
50  $suite->addTestSuite("assFileUploadGUITest");
51 
52  // Type: Flash
53  require_once("./Modules/TestQuestionPool/test/assFlashQuestionTest.php");
54  $suite->addTestSuite("assFlashQuestionTest");
55 
56  require_once("./Modules/TestQuestionPool/test/assFlashQuestionGUITest.php");
57  $suite->addTestSuite("assFlashQuestionGUITest");
58 
59  // Type: Formula
60  require_once("./Modules/TestQuestionPool/test/assFormulaQuestionTest.php");
61  $suite->addTestSuite("assFormulaQuestionTest");
62 
63  require_once("./Modules/TestQuestionPool/test/assFormulaQuestionGUITest.php");
64  $suite->addTestSuite("assFormulaQuestionGUITest");
65 
66  // Type: Imagemap
67  require_once("./Modules/TestQuestionPool/test/assImagemapQuestionTest.php");
68  $suite->addTestSuite("assImagemapQuestionTest");
69 
70  // Zype: JavaApplet
71  require_once("./Modules/TestQuestionPool/test/assJavaAppletTest.php");
72  $suite->addTestSuite("assJavaAppletTest");
73 
74  require_once("./Modules/TestQuestionPool/test/assJavaAppletGUITest.php");
75  $suite->addTestSuite("assJavaAppletGUITest");
76 
77  // Type: MatchingQuestion
78  require_once("./Modules/TestQuestionPool/test/assMatchingQuestionTest.php");
79  $suite->addTestSuite("assMatchingQuestionTest");
80 
81  require_once("./Modules/TestQuestionPool/test/assMatchingQuestionGUITest.php");
82  $suite->addTestSuite("assMatchingQuestionGUITest");
83 
84  // Type: MultipleChoice
85  require_once("./Modules/TestQuestionPool/test/assMultipleChoiceTest.php");
86  $suite->addTestSuite("assMultipleChoiceTest");
87  // Incompatible with local mode
88 
89  require_once("./Modules/TestQuestionPool/test/assMultipleChoiceGUITest.php");
90  $suite->addTestSuite("assMultipleChoiceGUITest");
91 
92  // Type: Numeric
93  require_once("./Modules/TestQuestionPool/test/assNumericTest.php");
94  $suite->addTestSuite("assNumericTest");
95 
96  require_once("./Modules/TestQuestionPool/test/assNumericGUITest.php");
97  $suite->addTestSuite("assNumericGUITest");
98 
99  require_once("./Modules/TestQuestionPool/test/assNumericRangeTest.php");
100  $suite->addTestSuite("assNumericRangeTest");
101 
102  // Type: OrderingHorizontal
103  require_once("./Modules/TestQuestionPool/test/assOrderingHorizontalTest.php");
104  $suite->addTestSuite("assOrderingHorizontalTest");
105 
106  require_once("./Modules/TestQuestionPool/test/assOrderingHorizontalGUITest.php");
107  $suite->addTestSuite("assOrderingHorizontalGUITest");
108 
109  // Type: Ordering
110  require_once("./Modules/TestQuestionPool/test/assOrderingQuestionTest.php");
111  $suite->addTestSuite("assOrderingQuestionTest");
112 
113  require_once("./Modules/TestQuestionPool/test/assOrderingQuestionGUITest.php");
114  $suite->addTestSuite("assOrderingQuestionGUITest");
115 
116  // Type: SingleChoice
117  require_once("./Modules/TestQuestionPool/test/assSingleChoiceTest.php");
118  $suite->addTestSuite("assSingleChoiceTest");
119  // Incompatible with local mode
120 
121  require_once("./Modules/TestQuestionPool/test/assSingleChoiceGUITest.php");
122  $suite->addTestSuite("assSingleChoiceGUITest");
123 
124  // Type: Text (Essay)
125  require_once("./Modules/TestQuestionPool/test/assTextQuestionTest.php");
126  $suite->addTestSuite("assTextQuestionTest");
127 
128  require_once("./Modules/TestQuestionPool/test/assTextQuestionGUITest.php");
129  $suite->addTestSuite("assTextQuestionGUITest");
130 
131  // Type: TextSubset
132  require_once("./Modules/TestQuestionPool/test/assTextSubsetTest.php");
133  $suite->addTestSuite("assTextSubsetTest");
134 
135  require_once("./Modules/TestQuestionPool/test/assTextSubsetGUITest.php");
136  $suite->addTestSuite("assTextSubsetGUITest");
137 
138  // Type: LongMenu
139  require_once("./Modules/TestQuestionPool/test/assLongMenuTest.php");
140  $suite->addTestSuite("assLongMenuTest");
141 
142  // Type: assKprimChoiceTest
143  require_once("./Modules/TestQuestionPool/test/assKprimChoiceTest.php");
144  $suite->addTestSuite("assKprimChoiceTest");
145 
146  // Hints
147  // -------------------------------------------------------------------------------------------------------------
148  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintTest.php");
149  $suite->addTestSuite("ilAssQuestionHintTest");
150 
151  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintAbstractTest.php");
152  $suite->addTestSuite("ilAssQuestionHintAbstractTest");
153 
154  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintListTest.php");
155  $suite->addTestSuite("ilAssQuestionHintListTest");
156 
157  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintRequestStatisticDataTest.php");
158  $suite->addTestSuite("ilAssQuestionHintRequestStatisticDataTest");
159 
160  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintTrackingTest.php");
161  $suite->addTestSuite("ilAssQuestionHintTrackingTest");
162 
163  // Answertypes
164  // -------------------------------------------------------------------------------------------------------------
165  require_once("./Modules/TestQuestionPool/test/assAnswerBinaryStateTest.php");
166  $suite->addTestSuite("assAnswerBinaryStateTest");
167 
168  require_once("./Modules/TestQuestionPool/test/assAnswerBinaryStateImageTest.php");
169  $suite->addTestSuite("assAnswerBinaryStateImageTest");
170 
171  require_once("./Modules/TestQuestionPool/test/assAnswerClozeTest.php");
172  $suite->addTestSuite("assAnswerClozeTest");
173 
174  require_once("./Modules/TestQuestionPool/test/assAnswerErrorTextTest.php");
175  $suite->addTestSuite("assAnswerErrorTextTest");
176 
177  require_once("./Modules/TestQuestionPool/test/assAnswerImagemapTest.php");
178  $suite->addTestSuite("assAnswerImagemapTest");
179 
180  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingTest.php");
181  $suite->addTestSuite("assAnswerMatchingTest");
182 
183  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingDefinitionTest.php");
184  $suite->addTestSuite("assAnswerMatchingDefinitionTest");
185 
186  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingPairTest.php");
187  $suite->addTestSuite("assAnswerMatchingPairTest");
188 
189  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingTermTest.php");
190  $suite->addTestSuite("assAnswerMatchingTermTest");
191 
192  require_once("./Modules/TestQuestionPool/test/assAnswerMultipleResponseTest.php");
193  $suite->addTestSuite("assAnswerMultipleResponseTest");
194 
195  require_once("./Modules/TestQuestionPool/test/assAnswerMultipleResponseImageTest.php");
196  $suite->addTestSuite("assAnswerMultipleResponseImageTest");
197 
198  require_once("./Modules/TestQuestionPool/test/assAnswerOrderingTest.php");
199  $suite->addTestSuite("assAnswerOrderingTest");
200 
201  require_once("./Modules/TestQuestionPool/test/assAnswerSimpleTest.php");
202  $suite->addTestSuite("assAnswerSimpleTest");
203 
204  require_once("./Modules/TestQuestionPool/test/assAnswerTrueFalseTest.php");
205  $suite->addTestSuite("assAnswerTrueFalseTest");
206 
207  require_once("./Modules/TestQuestionPool/test/ilAssQuestionSkillAssignmentRegistryTest.php");
208  $suite->addTestSuite("ilAssQuestionSkillAssignmentRegistryTest");
209 
210  return $suite;
211  }
212 }
$suite