30 protected function setUp(): void
34 $this->setGlobalVariable(
'ilLog', $this->createMock(ilLogger::class));
36 $ilCtrl_mock = $this->createMock(
'ilCtrl');
37 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
38 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
39 $this->setGlobalVariable(
'ilCtrl', $ilCtrl_mock);
41 $lng_mock = $this->createMock(
'ilLanguage', [
'txt'], [],
'',
false);
42 $lng_mock->expects($this->any())->method(
'txt')->will($this->returnValue(
'Test'));
43 $this->setGlobalVariable(
'lng', $lng_mock);
45 $this->setGlobalVariable(
'ilias', $this->getIliasMock());
46 $this->setGlobalVariable(
'ilDB', $this->getDatabaseMock());
53 $this->assertInstanceOf(assOrderingHorizontalGUI::class, $instance);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_instantiateObject_shouldReturnInstance()