ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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', array('txt'), array(), '', false);
42  $lng_mock->expects($this->any())->method('txt')->will($this->returnValue('Test'));
43  $this->setGlobalVariable('lng', $lng_mock);
44 
45  $this->setGlobalVariable('ilias', $this->getIliasMock());
46  $this->setGlobalVariable('tpl', $this->getGlobalTemplateMock());
47  $this->setGlobalVariable('ilDB', $this->getDatabaseMock());
48  }
49 
51  {
52  // Act
53  $instance = new assOrderingHorizontalGUI();
54 
55  $this->assertInstanceOf('assOrderingHorizontalGUI', $instance);
56  }
57 }
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, $value)