19 declare(strict_types=1);
29 protected function setUp(): void
59 $this->assertInstanceOf(ilTestServiceGUI::class, $this->testObj);
64 $this->testObj->setContextResultPresentation(
false);
65 $this->assertFalse($this->testObj->isContextResultPresentation());
67 $this->testObj->setContextResultPresentation(
true);
68 $this->assertTrue($this->testObj->isContextResultPresentation());
73 $mock = $this->createMock(ilTestParticipantData::class);
74 $this->testObj->setParticipantData($mock);
75 $this->assertEquals($mock, $this->testObj->getParticipantData());
80 $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
81 $this->testObj->setObjectiveOrientedContainer($mock);
82 $this->assertEquals($mock, $this->testObj->getObjectiveOrientedContainer());
87 $this->assertEquals(
"testCmd", $this->testObj->getCommand(
"testCmd"));
100 'question_id' => 9999999,
106 'question_id' => 234342342342342334,
108 'active_id' => 1634545234234232344,
109 'return' => 1634545234234232355
112 'question_id' => 23434234,
114 'active_id' => 9223372036854775804,
115 'return' => 9223372036854775804
119 $reflection = new \ReflectionClass(ilTestShuffler::class);
120 $method = $reflection->getMethod(
'buildFixedShufflerSeed');
121 $method->setAccessible(
true);
125 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock()
129 foreach ($seeds as $seed) {
130 $fixed_seed = $method->invoke($shuffler, $seed[
'question_id'], $seed[
'pass_id'], $seed[
'active_id']);
131 $this->assertEquals($seed[
'return'], $fixed_seed);
addGlobal_GlobalScreenService()
Class ChatMainBarProvider .
test_instantiateObject_shouldReturnInstance()
testObjectiveOrientedContainer()
addGlobal_ilComponentRepository()
ilTestServiceGUI $testObj
Class ilTestServiceGUITest.
addGlobal_ilNavigationHistory()
testContextResultPresentation()
addGlobal_ilObjDataCache()
Service GUI class for tests.
testBuildFixedShufflerSeedReturnsValidSeed()
Refinery Factory $refinery