3declare(strict_types=1);
 
   21use PHPUnit\Framework\MockObject\MockObject;
 
   35    protected function setUp(): void
 
   38        $ctrl_mock = $this->createMock(ilCtrl::class);
 
   39        $lng_mock = $this->createMock(ilLanguage::class);
 
   40        $lng_mock->expects($this->any())
 
   42                 ->willReturnCallback([self::class, 
"lngTxtCallback"]);
 
   47        $testObject_mock = $this->createMock(ilObjTest::class);
 
   48        $questionSetConfigGui_mock = $this->createMock(ilTestRandomQuestionSetConfigGUI::class);
 
   49        $this->questionSetConfig_mock = $this->createMock(ilTestRandomQuestionSetConfig::class);
 
   55            $questionSetConfigGui_mock,
 
   56            $this->questionSetConfig_mock
 
   62        $this->assertInstanceOf(ilTestRandomQuestionSetGeneralConfigFormGUI::class, $this->formGui);
 
   69        $this->formGui->setEditModeEnabled($expected);
 
   71        $this->assertEquals($expected, $this->formGui->isEditModeEnabled());
 
   76        $this->formGui->build();
 
   78        $this->formGui->testOBJ->setTestId(20101259);
 
   80        $this->questionSetConfig_mock->expects($this->once())
 
   83        $this->formGui->save();
 
   88        $args = func_get_args();
 
   90            case "tst_rnd_quest_set_cfg_general_form":
 
setGlobalVariable(string $name, $value)