19 declare(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(ilTestEvaluationGUI::class)->disableOriginalConstructor()->onlyMethods(array(
'getObject'))->getMock();
    52         $this->parentObj_mock->expects($this->any())->method(
'getObject')->willReturn($this->createMock(ilObjTest::class));
    58         $this->assertInstanceOf(ilTestAverageReachedPointsTableGUI::class, $this->tableGui);
    63         $this->assertTrue($this->tableGui->numericOrdering(
"points"));
    64         $this->assertTrue($this->tableGui->numericOrdering(
"qid"));
    65         $this->assertTrue($this->tableGui->numericOrdering(
"percentage"));
    66         $this->assertFalse($this->tableGui->numericOrdering(
"randomString"));
 ilTestAverageReachedPointsTableGUI $tableGui
 
test_instantiateObject_shouldReturnInstance()
 
ilTestEvaluationGUI $parentObj_mock
 
Output class for assessment test evaluation. 
 
Class ilTestAverageReachedPointsTableGUITest. 
 
setGlobalVariable(string $name, $value)