27 protected function setUp(): void
32 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
33 $this->createMock(ilDBInterface::class),
34 $this->createMock(ilLanguage::class),
35 $this->createMock(
ILIAS\
Test\Logging\TestLogger::class),
36 $this->createMock(ilComponentRepository::class),
37 $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock(),
38 $this->getMockBuilder(\
ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository::class)->disableOriginalConstructor()->getMock()
44 $this->assertInstanceOf(ilTestRandomQuestionSetConfig::class, $this->testObj);
49 $this->testObj->setPoolsWithHomogeneousScoredQuestionsRequired(
false);
50 $this->assertFalse($this->testObj->arePoolsWithHomogeneousScoredQuestionsRequired());
52 $this->testObj->setPoolsWithHomogeneousScoredQuestionsRequired(
true);
53 $this->assertTrue($this->testObj->arePoolsWithHomogeneousScoredQuestionsRequired());
58 $questionAmountConfigurationMode =
'test';
59 $this->testObj->setQuestionAmountConfigurationMode($questionAmountConfigurationMode);
60 $this->assertEquals($questionAmountConfigurationMode, $this->testObj->getQuestionAmountConfigurationMode());
66 $this->assertFalse($this->testObj->isQuestionAmountConfigurationModePerPool());
69 $this->assertTrue($this->testObj->isQuestionAmountConfigurationModePerPool());
75 $this->assertFalse($this->testObj->isQuestionAmountConfigurationModePerTest());
78 $this->assertTrue($this->testObj->isQuestionAmountConfigurationModePerTest());
83 $this->assertFalse($this->testObj->isValidQuestionAmountConfigurationMode(200));
90 $questionAmountPerTest = 222;
91 $this->testObj->setQuestionAmountPerTest($questionAmountPerTest);
92 $this->assertEquals($questionAmountPerTest, $this->testObj->getQuestionAmountPerTest());
97 $lastQuestionSyncTimestamp = 222;
98 $this->testObj->setLastQuestionSyncTimestamp($lastQuestionSyncTimestamp);
99 $this->assertEquals($lastQuestionSyncTimestamp, $this->testObj->getLastQuestionSyncTimestamp());
testLastQuestionSyncTimestamp()
testQuestionAmountPerTest()
Interface Observer Contains several chained tasks and infos about them.
testQuestionAmountConfigurationModePerTest()
const QUESTION_AMOUNT_CONFIG_MODE_PER_POOL
testQuestionAmountConfigurationMode()
testQuestionAmountConfigurationModePerPool()
ilTestRandomQuestionSetConfig $testObj
test_instantiateObject_shouldReturnInstance()
testIsValidQuestionAmountConfigurationMode()
testPoolsWithHomogeneousScoredQuestionsRequired()
const QUESTION_AMOUNT_CONFIG_MODE_PER_TEST
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...