19 declare(strict_types=1);
29 protected function setUp(): void
49 $this->assertInstanceOf(ilTestRandomQuestionSetConfigStateMessageHandler::class, $this->testObj);
60 $this->testObj->setLostPools($expected);
61 $this->assertEquals($expected, $this->testObj->getLostPools());
66 $this->testObj->setParticipantDataExists(
false);
67 $this->assertFalse($this->testObj->doesParticipantDataExists());
69 $this->testObj->setParticipantDataExists(
true);
70 $this->assertTrue($this->testObj->doesParticipantDataExists());
75 $targetGui_mock = $this->createMock(ilTestRandomQuestionSetConfigGUI::class);
76 $this->testObj->setTargetGUI($targetGui_mock);
77 $this->assertEquals($targetGui_mock, $this->testObj->getTargetGUI());
82 $this->testObj->setContext(
"test");
83 $this->assertEquals(
"test", $this->testObj->getContext());
88 $mock = $this->createMock(ilTestRandomQuestionSetConfig::class);
89 $this->testObj->setQuestionSetConfig($mock);
90 $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
test_instantiateObject_shouldReturnInstance()
testParticipantDataExists()
Class ilTestRandomQuestionSetConfigStateMessageHandlerTest.
ilTestRandomQuestionSetConfigStateMessageHandler $testObj