19 declare(strict_types=1);
    30     protected function setUp(): void
    39         $lng_mock = $this->createMock(ilLanguage::class);
    40         $lng_mock->expects($this->any())
    42             ->willReturnCallback(
function () {
    43                 return "testTranslation";
    47         $ctrl_mock = $this->createMock(ilCtrl::class);
    48         $ctrl_mock->expects($this->any())
    49             ->method(
"getFormAction")
    50             ->willReturnCallback(
function () {
    51                 return "testFormAction";
    55         $component_factory = $this->createMock(ilComponentFactory::class);
    56         $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
    59         $objTest_mock = $this->createMock(ilObjTest::class);
    60         $objTest_mock->expects($this->any())
    61             ->method(
"getTestQuestions")
    62             ->willReturnCallback(
function () {
    65         $objTest_mock->expects($this->any())
    66             ->method(
"getPotentialRandomTestQuestions")
    67             ->willReturnCallback(
function () {
    71         $this->parentObj_mock = $this->getMockBuilder(ilTestScoringByQuestionsGUI::class)
    72             ->disableOriginalConstructor()->onlyMethods([
'getObject'])->getMock();
    73         $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($objTest_mock);
    80         $this->assertInstanceOf(ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI::class, $this->tableGui);
 test_instantiateObject_shouldReturnInstance()
 
ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI 
 
addGlobal_ilComponentRepository()
 
Class ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUITest. 
 
ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI $tableGui
 
setGlobalVariable(string $name, $value)
 
ilTestScoringByQuestionsGUI $parentObj_mock