19 declare(strict_types=1);
29 protected function setUp(): void
44 $this->assertInstanceOf(ilTestRandomQuestionSetConfigStateMessageHandler::class, $this->testObj);
55 $this->testObj->setLostPools($expected);
56 $this->assertEquals($expected, $this->testObj->getLostPools());
61 $this->testObj->setParticipantDataExists(
false);
62 $this->assertFalse($this->testObj->doesParticipantDataExists());
64 $this->testObj->setParticipantDataExists(
true);
65 $this->assertTrue($this->testObj->doesParticipantDataExists());
70 $targetGui_mock = $this->createMock(ilTestRandomQuestionSetConfigGUI::class);
71 $this->testObj->setTargetGUI($targetGui_mock);
72 $this->assertEquals($targetGui_mock, $this->testObj->getTargetGUI());
78 $this->testObj->setContext(
$context);
79 $this->assertEquals(
$context, $this->testObj->getContext());
84 $mock = $this->createMock(ilTestRandomQuestionSetConfig::class);
85 $this->testObj->setQuestionSetConfig($mock);
86 $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
test_instantiateObject_shouldReturnInstance()
testParticipantDataExists()
Class ilTestRandomQuestionSetConfigStateMessageHandlerTest.
ilTestRandomQuestionSetConfigStateMessageHandler $testObj