19 declare(strict_types=1);
29 protected function setUp(): void
48 $this->assertInstanceOf(ilObjTest::class, $this->testObj);
53 $this->testObj->setTmpCopyWizardCopyId(12);
54 $this->assertEquals(12, $this->testObj->getTmpCopyWizardCopyId());
59 $this->testObj->setIntroductionEnabled(
false);
60 $this->assertFalse($this->testObj->isIntroductionEnabled());
62 $this->testObj->setIntroductionEnabled(
true);
63 $this->assertTrue($this->testObj->isIntroductionEnabled());
68 $this->assertEmpty($this->testObj->getIntroduction());
69 $this->testObj->setIntroduction(
"Test");
70 $this->assertEquals(
"Test", $this->testObj->getIntroduction());
75 $this->assertEmpty($this->testObj->getFinalStatement());
76 $this->testObj->setFinalStatement(
"Test");
77 $this->assertEquals(
"Test", $this->testObj->getFinalStatement());
82 $this->testObj->setShowInfo(0);
83 $this->assertEquals(0, $this->testObj->getShowInfo());
85 $this->testObj->setShowInfo(1);
86 $this->assertEquals(1, $this->testObj->getShowInfo());
91 $this->testObj->setForceJS(0);
92 $this->assertEquals(0, $this->testObj->getForceJS());
94 $this->testObj->setForceJS(1);
95 $this->assertEquals(1, $this->testObj->getForceJS());
100 $this->testObj->setCustomStyle(
"Test");
101 $this->assertEquals(
"Test", $this->testObj->getCustomStyle());
106 $this->testObj->setShowFinalStatement(0);
107 $this->assertEquals(0, $this->testObj->getShowFinalStatement());
109 $this->testObj->setShowFinalStatement(1);
110 $this->assertEquals(1, $this->testObj->getShowFinalStatement());
115 $this->testObj->setTestId(15);
116 $this->assertEquals(15, $this->testObj->getTestId());
121 $this->testObj->setECTSOutput(0);
122 $this->assertEquals(0, $this->testObj->getECTSOutput());
124 $this->testObj->setECTSOutput(1);
125 $this->assertEquals(1, $this->testObj->getECTSOutput());
130 $this->testObj->setECTSFX(123);
131 $this->assertEquals(123, $this->testObj->getECTSFX());
136 $expected = [1, 6, 112, 160];
137 $this->testObj->setECTSGrades($expected);
138 $this->assertEquals($expected, $this->testObj->getECTSGrades());
143 $this->testObj->setSequenceSettings(0);
144 $this->assertEquals(0, $this->testObj->getSequenceSettings());
146 $this->testObj->setSequenceSettings(1);
147 $this->assertEquals(1, $this->testObj->getSequenceSettings());
152 $this->testObj->setSequenceSettings(0);
153 $this->assertfalse($this->testObj->isPostponingEnabled());
155 $this->testObj->setSequenceSettings(1);
156 $this->assertTrue($this->testObj->isPostponingEnabled());
161 $this->testObj->setPostponingEnabled(0);
162 $this->assertfalse($this->testObj->isPostponingEnabled());
164 $this->testObj->setPostponingEnabled(1);
165 $this->assertTrue($this->testObj->isPostponingEnabled());
170 $this->testObj->setInstantFeedbackSolution(0);
171 $this->assertEquals(0, $this->testObj->getInstantFeedbackSolution());
173 $this->testObj->setInstantFeedbackSolution(200);
174 $this->assertEquals(0, $this->testObj->getInstantFeedbackSolution());
176 $this->testObj->setInstantFeedbackSolution(1);
177 $this->assertEquals(1, $this->testObj->getInstantFeedbackSolution());
182 $this->testObj->setGenericAnswerFeedback(0);
183 $this->assertEquals(0, $this->testObj->getGenericAnswerFeedback());
185 $this->testObj->setGenericAnswerFeedback(200);
186 $this->assertEquals(0, $this->testObj->getGenericAnswerFeedback());
188 $this->testObj->setGenericAnswerFeedback(1);
189 $this->assertEquals(1, $this->testObj->getGenericAnswerFeedback());
194 $this->testObj->setAnswerFeedbackPoints(0);
195 $this->assertEquals(0, $this->testObj->getAnswerFeedbackPoints());
197 $this->testObj->setAnswerFeedbackPoints(200);
198 $this->assertEquals(0, $this->testObj->getAnswerFeedbackPoints());
200 $this->testObj->setAnswerFeedbackPoints(1);
201 $this->assertEquals(1, $this->testObj->getAnswerFeedbackPoints());
206 $this->testObj->setBlockPassesAfterPassedEnabled(
false);
207 $this->assertfalse($this->testObj->isBlockPassesAfterPassedEnabled());
209 $this->testObj->setBlockPassesAfterPassedEnabled(
true);
210 $this->assertTrue($this->testObj->isBlockPassesAfterPassedEnabled());
215 $this->testObj->setKiosk(0);
216 $this->assertEquals(0, $this->testObj->getKiosk());
218 $this->testObj->setKiosk(22);
219 $this->assertEquals(22, $this->testObj->getKiosk());
221 $this->testObj->setKiosk(1);
222 $this->assertEquals(1, $this->testObj->getKiosk());
227 $this->testObj->setKiosk(0);
228 $this->assertEquals(
false, $this->testObj->getKioskMode());
230 $this->testObj->setKiosk(22);
231 $this->assertEquals(
false, $this->testObj->getKioskMode());
233 $this->testObj->setKiosk(1);
234 $this->assertEquals(1, $this->testObj->getKioskMode());
239 $this->testObj->setKioskMode(
false);
240 $this->assertFalse($this->testObj->getKioskMode());
242 $this->testObj->setKioskMode(
true);
243 $this->assertTrue($this->testObj->getKioskMode());
248 $this->testObj->setStartingTimeEnabled(
false);
249 $this->assertFalse($this->testObj->isStartingTimeEnabled());
251 $this->testObj->setStartingTimeEnabled(
true);
252 $this->assertTrue($this->testObj->isStartingTimeEnabled());
257 $this->testObj->setStartingTime(
"0");
258 $this->assertEquals(0, $this->testObj->getStartingTime());
260 $this->testObj->setStartingTime(
"1");
261 $this->assertEquals(1, $this->testObj->getStartingTime());
266 $this->testObj->setEndingTimeEnabled(
false);
267 $this->assertFalse($this->testObj->isEndingTimeEnabled());
269 $this->testObj->setEndingTimeEnabled(
true);
270 $this->assertTrue($this->testObj->isEndingTimeEnabled());
275 $this->testObj->setEndingTime(0);
276 $this->assertEquals(0, $this->testObj->getEndingTime());
278 $this->testObj->setEndingTime(1);
279 $this->assertEquals(1, $this->testObj->getEndingTime());
284 $this->testObj->setNrOfTries(0);
285 $this->assertEquals(0, $this->testObj->getNrOfTries());
287 $this->testObj->setNrOfTries(22);
288 $this->assertEquals(22, $this->testObj->getNrOfTries());
290 $this->testObj->setNrOfTries(1);
291 $this->assertEquals(1, $this->testObj->getNrOfTries());
296 $this->testObj->setUsePreviousAnswers(0);
297 $this->assertEquals(0, $this->testObj->getUsePreviousAnswers());
299 $this->testObj->setUsePreviousAnswers(1);
300 $this->assertEquals(1, $this->testObj->getUsePreviousAnswers());
305 $this->testObj->setRedirectionMode(0);
306 $this->assertEquals(0, $this->testObj->getRedirectionMode());
308 $this->testObj->setRedirectionMode(1);
309 $this->assertEquals(1, $this->testObj->getRedirectionMode());
314 $this->testObj->setRedirectionUrl(
"Test");
315 $this->assertEquals(
"Test", $this->testObj->getRedirectionUrl());
320 $this->testObj->setProcessingTime(
"Test");
321 $this->assertEquals(
"Test", $this->testObj->getProcessingTime());
326 $this->testObj->setProcessingTimeByMinutes(12);
327 $this->assertEquals(
"00:12:00", $this->testObj->getProcessingTime());
332 $this->testObj->setEnableProcessingTime(0);
333 $this->assertEquals(0, $this->testObj->getEnableProcessingTime());
335 $this->testObj->setEnableProcessingTime(1);
336 $this->assertEquals(1, $this->testObj->getEnableProcessingTime());
341 $this->testObj->setResetProcessingTime(0);
342 $this->assertEquals(0, $this->testObj->getResetProcessingTime());
344 $this->testObj->setResetProcessingTime(1);
345 $this->assertEquals(1, $this->testObj->getResetProcessingTime());
350 $this->testObj->setPasswordEnabled(0);
351 $this->assertEquals(0, $this->testObj->isPasswordEnabled());
353 $this->testObj->setPasswordEnabled(1);
354 $this->assertEquals(1, $this->testObj->isPasswordEnabled());
359 $this->testObj->setPassword(
"Test");
360 $this->assertEquals(
"Test", $this->testObj->getPassword());
365 $this->testObj->setPassWaiting(
"Test");
366 $this->assertEquals(
"Test", $this->testObj->getPassWaiting());
371 $this->testObj->setShuffleQuestions(0);
372 $this->assertEquals(0, $this->testObj->getShuffleQuestions());
374 $this->testObj->setShuffleQuestions(1);
375 $this->assertEquals(1, $this->testObj->getShuffleQuestions());
380 $this->testObj->setListOfQuestionsSettings(0);
381 $this->assertEquals(0, $this->testObj->getListOfQuestionsSettings());
383 $this->testObj->setListOfQuestionsSettings(1);
384 $this->assertEquals(1, $this->testObj->getListOfQuestionsSettings());
386 $this->testObj->setListOfQuestionsSettings(22);
387 $this->assertEquals(22, $this->testObj->getListOfQuestionsSettings());
392 $this->testObj->setListOfQuestions(0);
393 $this->assertfalse($this->testObj->getListOfQuestions());
395 $this->testObj->setListOfQuestions(1);
396 $this->assertTrue($this->testObj->getListOfQuestions());
testGenericAnswerFeedback()
testIsPostponingEnabled()
testStartingTimeEnabled()
addGlobal_objDefinition()
testSetProcessingTimeByMinutes()
testBlockPassesAfterPassedEnabled()
testListOfQuestionsSettings()
test_instantiateObject_shouldReturnInstance()
testAnswerFeedbackPoints()
testSetPostponingEnabled()
testTmpCopyWizardCopyId()
testIntroductionEnabled()
testResetProcessingTime()
testEnableProcessingTime()
testInstantFeedbackSolution()
addGlobal_ilAppEventHandler()