37 $this->createMock(ServerRequestInterface::class),
38 $this->getMockBuilder(\
ILIAS\
Refinery\Factory::class)->disableOriginalConstructor()->getMock(),
40 $this->createMock(ilTabsGUI::class)
47 $objTestGui_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods([
'getObject'])->getMock();
48 $objTestGui_mock->expects(
50 )->method(
'getObject')->willReturn(
51 $this->getTestObjMock()
57 $this->createMock(ilCtrl::class),
58 $this->createMock(ilAccessHandler::class),
59 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock(),
60 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
61 $this->createMock(ilDBInterface::class),
62 $this->createMock(ilComponentRepository::class),
66 $this->createMock(\
ILIAS\
Test\Logging\TestLogger::class),
67 $this->createMock(ScoreSettingsRepository::class),
73 $this->getMockBuilder(ilObjUser::class)->disableOriginalConstructor()->getMock(),
76 $this->assertInstanceOf(SettingsScoringGUI::class, $testObj);
Interface Observer Contains several chained tasks and infos about them.
Class SettingsScoringGUITest.
testScoringResultsGUIConstruct()
trait UITestHelper
Class UITestHelper can be helpful for test cases outside the UI Components, to inject a working facto...