19 declare(strict_types=1);
    30     protected function setUp(): void
    38         $ctrl_mock = $this->createMock(ilCtrl::class);
    39         $ctrl_mock->expects($this->any())
    40                   ->method(
"getFormAction")
    41                   ->willReturnCallback(
function () {
    42                       return "testFormAction";
    46         $component_factory = $this->createMock(ilComponentFactory::class);
    47         $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
    50         $this->parentObj_mock = $this->createMock(ilTestRandomQuestionSetConfigGUI::class);
    52             $this->parentObj_mock,
    54             $this->createMock(ilAccess::class),
    55             $this->createMock(
ILIAS\
UI\Factory::class),
    56             $this->createMock(
ILIAS\
UI\Renderer::class),
    64         $this->assertInstanceOf(ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI::class, $this->tableGui);
    69         $this->assertIsBool($this->tableGui->isDefinitionEditModeEnabled());
    70         $this->tableGui->setDefinitionEditModeEnabled(
false);
    71         $this->assertFalse($this->tableGui->isDefinitionEditModeEnabled());
    72         $this->tableGui->setDefinitionEditModeEnabled(
true);
    73         $this->assertTrue($this->tableGui->isDefinitionEditModeEnabled());
    78         $this->assertIsBool($this->tableGui->isQuestionAmountColumnEnabled());
    79         $this->tableGui->setQuestionAmountColumnEnabled(
false);
    80         $this->assertFalse($this->tableGui->isQuestionAmountColumnEnabled());
    81         $this->tableGui->setQuestionAmountColumnEnabled(
true);
    82         $this->assertTrue($this->tableGui->isQuestionAmountColumnEnabled());
 ilTestRandomQuestionSetSourcePoolDefinitionListTableGUI $tableGui
 
Class ChatMainBarProvider . 
 
addGlobal_ilComponentRepository()
 
test_instantiateObject_shouldReturnInstance()
 
setGlobalVariable(string $name, $value)
 
ilTestRandomQuestionSetConfigGUI $parentObj_mock
 
testQuestionAmountColumnEnabled()
 
testDefinitionEditModeEnabled()
 
Class ilTestRandomQuestionSetSourcePoolDefinitionListTableGUITest.