3 declare(strict_types=1);
29 protected function setUp(): void
34 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
35 $this->createMock(ilDBInterface::class),
36 $this->createMock(ilComponentRepository::class),
37 $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock()
43 $this->assertInstanceOf(ilTestRandomQuestionSetConfig::class, $this->testObj);
48 $this->testObj->setPoolsWithHomogeneousScoredQuestionsRequired(
false);
49 $this->assertFalse($this->testObj->arePoolsWithHomogeneousScoredQuestionsRequired());
51 $this->testObj->setPoolsWithHomogeneousScoredQuestionsRequired(
true);
52 $this->assertTrue($this->testObj->arePoolsWithHomogeneousScoredQuestionsRequired());
57 $this->testObj->setQuestionAmountConfigurationMode(
"test");
58 $this->assertEquals(
"test", $this->testObj->getQuestionAmountConfigurationMode());
64 $this->assertFalse($this->testObj->isQuestionAmountConfigurationModePerPool());
67 $this->assertTrue($this->testObj->isQuestionAmountConfigurationModePerPool());
73 $this->assertFalse($this->testObj->isQuestionAmountConfigurationModePerTest());
76 $this->assertTrue($this->testObj->isQuestionAmountConfigurationModePerTest());
81 $this->assertFalse($this->testObj->isValidQuestionAmountConfigurationMode(200));
88 $this->testObj->setQuestionAmountPerTest(222);
89 $this->assertEquals(222, $this->testObj->getQuestionAmountPerTest());
94 $this->testObj->setLastQuestionSyncTimestamp(222);
95 $this->assertEquals(222, $this->testObj->getLastQuestionSyncTimestamp());
testLastQuestionSyncTimestamp()
testQuestionAmountPerTest()
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...