3 declare(strict_types=1);
29 protected function setUp(): void
33 $lng_mock = $this->createMock(ilLanguage::class);
34 $ctrl_mock = $this->createMock(ilCtrl::class);
36 ->method(
"getFormAction")
37 ->willReturnCallback(
function () {
38 return "testFormAction";
44 $this->
setGlobalVariable(
"component.repository", $this->createMock(ilComponentRepository::class));
45 $this->
setGlobalVariable(
"component.factory", $this->createMock(ilComponentFactory::class));
54 public static function getRootLogger():
ilLogger 56 return new class () extends
ilLogger {
65 public function info(
string $a_message):
void 69 public function debug(
string $a_message, array $a_context = array()):
void 75 public static function getLogger(
string $a_component_id):
ilLogger 77 return new class () extends
ilLogger {
86 public function debug(
string $a_message, array $a_context = array()):
void 93 $test_gui = $this->getMockBuilder(ilObjTestVerificationGUI::class)->disableOriginalConstructor()->getMock();
99 $this->assertInstanceOf(ilTestVerificationTableGUI::class, $this->tableGui);
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilTestVerificationTableGUI $tableGui
setGlobalVariable(string $name, $value)
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...