3declare(strict_types=1);
 
   30    protected function setUp(): void
 
   34        $lng_mock = $this->createMock(ilLanguage::class);
 
   35        $ctrl_mock = $this->createMock(ilCtrl::class);
 
   37                  ->method(
"getFormAction")
 
   38                  ->willReturnCallback(
function () {
 
   39                      return "testFormAction";
 
   45        $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
 
   46        $component_factory = $this->createMock(ilComponentFactory::class);
 
   47        $component_factory->method(
"getActivePluginsInSlot")->willReturn(
new ArrayIterator());
 
   50        $this->parentObj_mock = $this->getMockBuilder(ilObjAssessmentFolderGUI::class)->disableOriginalConstructor()->onlyMethods([
'getObject'])->getMock();
 
   51        $this->parentObj_mock->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
 
   58        $this->assertInstanceOf(ilAssessmentFolderLogAdministrationTableGUI::class, $this->tableGui);
 
   63        $this->assertEquals(
false, $this->tableGui->numericOrdering(
"test"));
 
   64        $this->assertEquals(
true, $this->tableGui->numericOrdering(
"nr"));
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
test_instantiateObject_shouldReturnInstance()
 
ilObjAssessmentFolderGUI $parentObj_mock
 
ilAssessmentFolderLogAdministrationTableGUI $tableGui
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ilObjAssessmentFolderGUI.
 
setGlobalVariable(string $name, $value)