3 declare(strict_types=1);
33 protected function setUp(): void
38 $this->backup_dic =
$DIC;
40 'tpl' => $this->getMockBuilder(ilGlobalTemplateInterface::class)
44 $this->createMock(ilObjTest::class),
45 $this->createMock(ilTestQuestionSetConfig::class)
57 $this->assertInstanceOf(ilTestParticipantsGUI::class, $this->testObj);
62 $mock = $this->createMock(ilObjTest::class);
63 $this->testObj->setTestObj($mock);
64 $this->assertEquals($mock, $this->testObj->getTestObj());
69 $mock = $this->createMock(ilTestQuestionSetConfig::class);
70 $this->testObj->setQuestionSetConfig($mock);
71 $this->assertEquals($mock, $this->testObj->getQuestionSetConfig());
76 $mock = $this->createMock(ilTestObjectiveOrientedContainer::class);
77 $this->testObj->setObjectiveParent($mock);
78 $this->assertEquals($mock, $this->testObj->getObjectiveParent());
83 $mock = $this->createMock(ilTestAccess::class);
84 $this->testObj->setTestAccess($mock);
85 $this->assertEquals($mock, $this->testObj->getTestAccess());
test_instantiateObject_shouldReturnInstance()
ilTestParticipantsGUI $testObj
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...