3declare(strict_types=1);
 
   30    protected function setUp(): void
 
   34        $lng_mock = $this->createMock(ilLanguage::class);
 
   35        $ctrl_mock = $this->createMock(ilCtrl::class);
 
   36        $ctrl_mock->expects($this->any())
 
   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());
 
   51        $this->parentObj_mock = $this->getMockBuilder(ilObjTestGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
 
   52        $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
 
   58        $this->assertInstanceOf(ilTestPassOverviewTableGUI::class, $this->tableGui);
 
   63        $this->assertTrue($this->tableGui->numericOrdering(
"pass"));
 
   64        $this->assertTrue($this->tableGui->numericOrdering(
"date"));
 
   65        $this->assertTrue($this->tableGui->numericOrdering(
"percentage"));
 
   66        $this->assertFalse($this->tableGui->numericOrdering(
"randomText"));
 
   71        $this->assertIsBool($this->tableGui->isResultPresentationEnabled());
 
   72        $this->tableGui->setResultPresentationEnabled(
false);
 
   73        $this->assertFalse($this->tableGui->isResultPresentationEnabled());
 
   74        $this->tableGui->setResultPresentationEnabled(
true);
 
   75        $this->assertTrue($this->tableGui->isResultPresentationEnabled());
 
   80        $this->assertIsBool($this->tableGui->isPdfPresentationEnabled());
 
   81        $this->tableGui->setPdfPresentationEnabled(
false);
 
   82        $this->assertFalse($this->tableGui->isPdfPresentationEnabled());
 
   83        $this->tableGui->setPdfPresentationEnabled(
true);
 
   84        $this->assertTrue($this->tableGui->isPdfPresentationEnabled());
 
   89        $this->assertIsBool($this->tableGui->isObjectiveOrientedPresentationEnabled());
 
   90        $this->tableGui->setObjectiveOrientedPresentationEnabled(
false);
 
   91        $this->assertFalse($this->tableGui->isObjectiveOrientedPresentationEnabled());
 
   92        $this->tableGui->setObjectiveOrientedPresentationEnabled(
true);
 
   93        $this->assertTrue($this->tableGui->isObjectiveOrientedPresentationEnabled());
 
   98        $this->tableGui->setActiveId(20);
 
   99        $this->assertEquals(20, $this->tableGui->getActiveId());
 
  104        $this->assertIsString($this->tableGui->getPassDetailsCommand());
 
  105        $this->tableGui->setPassDetailsCommand(
"testString");
 
  106        $this->assertEquals(
"testString", $this->tableGui->getPassDetailsCommand());
 
  111        $this->assertIsString($this->tableGui->getPassDeletionCommand());
 
  112        $this->tableGui->setPassDeletionCommand(
"testString");
 
  113        $this->assertEquals(
"testString", $this->tableGui->getPassDeletionCommand());
 
setGlobalVariable(string $name, $value)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testPassDeletionCommand()
 
testObjectiveOrientedPresentationEnabled()
 
testPdfPresentationEnabled()
 
ilTestPassOverviewTableGUI $tableGui
 
test_instantiateObject_shouldReturnInstance()
 
testResultPresentationEnabled()
 
ilObjTestGUI $parentObj_mock
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...