19 declare(strict_types=1);
29 protected function setUp(): void
32 $ctrl_mock = $this->createMock(ilCtrl::class);
33 $lng_mock = $this->createMock(ilLanguage::class);
35 $this->setGlobalVariable(
"lng", $lng_mock);
36 $this->setGlobalVariable(
"ilCtrl", $ctrl_mock);
38 $testRandomQuestionSetConfigGUI_mock = $this->getMockBuilder(
39 ilTestRandomQuestionSetConfigGUI::class
40 )->disableOriginalConstructor()->getMock();
42 $testRandomQuestionSetConfig_mock = $this->getMockBuilder(
43 ilTestRandomQuestionSetConfig::class,
44 )->disableOriginalConstructor()->getMock();
49 $this->getTestObjMock(),
50 $testRandomQuestionSetConfigGUI_mock,
51 $testRandomQuestionSetConfig_mock
57 $this->assertInstanceOf(ilTestRandomQuestionSetPoolDefinitionFormGUI::class, $this->formGui);
62 $expected =
'testCommand';
64 $this->formGui->setSaveCommand($expected);
66 $this->assertEquals($expected, $this->formGui->getSaveCommand());
71 $expected =
'testCommand';
73 $this->formGui->setSaveAndNewCommand($expected);
75 $this->assertEquals($expected, $this->formGui->getSaveAndNewCommand());