3 declare(strict_types=1);
29 protected function setUp(): void
48 $this->assertInstanceOf(ilTestServiceGUI::class, $this->testObj);
53 $this->testObj->setContextResultPresentation(
false);
54 $this->assertFalse($this->testObj->isContextResultPresentation());
56 $this->testObj->setContextResultPresentation(
true);
57 $this->assertTrue($this->testObj->isContextResultPresentation());
62 $mock = $this->createMock(ilTestParticipantData::class);
63 $this->testObj->setParticipantData($mock);
64 $this->assertEquals($mock, $this->testObj->getParticipantData());
69 $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
70 $this->testObj->setObjectiveOrientedContainer($mock);
71 $this->assertEquals($mock, $this->testObj->getObjectiveOrientedContainer());
76 $this->assertEquals(
"testCmd", $this->testObj->getCommand(
"testCmd"));
89 'question_id' => 9999999,
95 'question_id' => 234342342342342334,
97 'active_id' => 1634545234234232344,
98 'return' => 1634545234234232355
101 'question_id' => 23434234,
103 'active_id' => 9223372036854775804,
104 'return' => 9223372036854775804
108 $reflection = new \ReflectionClass(ilTestServiceGUI::class);
109 $method = $reflection->getMethod(
'buildFixedShufflerSeed');
110 $method->setAccessible(
true);
112 foreach ($seeds as $seed) {
113 $fixed_seed = $method->invoke($this->testObj, $seed[
'question_id'], $seed[
'pass_id'], $seed[
'active_id']);
114 $this->assertEquals($seed[
'return'], $fixed_seed);
test_instantiateObject_shouldReturnInstance()
testObjectiveOrientedContainer()
addGlobal_ilComponentRepository()
ilTestServiceGUI $testObj
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testContextResultPresentation()
addGlobal_ilObjDataCache()
Service GUI class for tests.
testBuildFixedShufflerSeedReturnsValidSeed()