3 declare(strict_types=1);
29 protected function setUp(): void
38 $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock(),
39 $this->createMock(ilAccessHandler::class),
40 $this->getMockBuilder(ilTabsGUI::class)->disableOriginalConstructor()->getMock(),
41 $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock(),
42 $this->createMock(ilGlobalTemplateInterface::class),
43 $this->createMock(ilDBInterface::class),
44 $this->getMockBuilder(ilTree::class)->disableOriginalConstructor()->getMock(),
45 $this->createMock(ilComponentRepository::class),
46 $this->getMockBuilder(ilObjTest::class)->disableOriginalConstructor()->getMock(),
47 $this->getMockBuilder(ilTestProcessLockerFactory::class)->disableOriginalConstructor()->getMock()
53 $this->assertInstanceOf(ilTestRandomQuestionSetConfigGUI::class, $this->testObj);
58 $lng_mock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
59 $lng_mock->expects($this->once())
61 ->with(
"tst_rnd_quest_cfg_tab_general")
62 ->willReturn(
"testString");
64 $this->testObj->lng = $lng_mock;
66 $this->assertEquals(
"testString", $this->testObj->getGeneralConfigTabLabel());
71 $lng_mock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
72 $lng_mock->expects($this->once())
74 ->with(
"tst_rnd_quest_cfg_tab_pool")
75 ->willReturn(
"testString");
77 $this->testObj->lng = $lng_mock;
79 $this->assertEquals(
"testString", $this->testObj->getPoolConfigTabLabel());
addGlobal_objDefinition()
testGetGeneralConfigTabLabel()
ilTestRandomQuestionSetConfigGUI $testObj
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addGlobal_ilObjDataCache()