3declare(strict_types=1);
 
   29    protected function setUp(): void
 
   33        $db_mock = $this->createMock(ilDBInterface::class);
 
   34        $testDynamicQuestionSet_mock = $this->createMock(ilTestDynamicQuestionSet::class);
 
   41        $this->assertInstanceOf(ilTestSequenceDynamicQuestionSet::class, $this->testObj);
 
   46        $this->assertEquals(17, $this->testObj->getActiveId());
 
   51        $this->testObj->setPreventCheckedQuestionsFromComingUpEnabled(
false);
 
   52        $this->assertFalse($this->testObj->isPreventCheckedQuestionsFromComingUpEnabled());
 
   54        $this->testObj->setPreventCheckedQuestionsFromComingUpEnabled(
true);
 
   55        $this->assertTrue($this->testObj->isPreventCheckedQuestionsFromComingUpEnabled());
 
   60        $this->testObj->setCurrentQuestionId(5);
 
   61        $this->assertEquals(5, $this->testObj->getCurrentQuestionId());
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilTestSequenceDynamicQuestionSet $testObj
 
testPreventCheckedQuestionsFromComingUpEnabled()
 
test_instantiateObject_shouldReturnInstance()