ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assOrderingHorizontalGUITest.php
Go to the documentation of this file.
1<?php
2
27{
28 protected $backupGlobals = false;
29
30 protected function setUp(): void
31 {
32 parent::setUp();
33
34 $this->setGlobalVariable('ilLog', $this->createMock(ilLogger::class));
35
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);
40
41 $lng_mock = $this->createMock('ilLanguage', ['txt'], [], '', false);
42 $lng_mock->expects($this->any())->method('txt')->willReturn('Test');
43 $this->setGlobalVariable('lng', $lng_mock);
44
45 $this->setGlobalVariable('ilias', $this->getIliasMock());
46 $this->setGlobalVariable('ilDB', $this->getDatabaseMock());
47 }
48
50 {
51 $instance = new assOrderingHorizontalGUI();
52
53 $this->assertInstanceOf(assOrderingHorizontalGUI::class, $instance);
54 }
55}
Class assBaseTestCase.
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...
setGlobalVariable(string $name, mixed $value)