3 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());
52 $this->parentObj_mock = $this->createMock(ilMarkSchemaGUI::class);
54 $assMarkSchema = $this->createMock(ASS_MarkSchema::class);
55 $assMarkSchema->expects($this->any())
56 ->method(
"getMarkSteps")
59 $markSchemaAware_mock = $this->createMock(ilMarkSchemaAware::class);
61 ->expects($this->any())
62 ->method(
"getMarkSchema")
63 ->willReturn($assMarkSchema);
65 $this->parentObj_mock,
74 $this->assertInstanceOf(ilMarkSchemaTableGUI::class, $this->tableGui);
ilMarkSchemaGUI $parentObj_mock
test_instantiateObject_shouldReturnInstance()
ilMarkSchemaTableGUI $tableGui
setGlobalVariable(string $name, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...