ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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  require_once './Services/UICore/classes/class.ilCtrl.php';
35  $ilCtrl_mock = $this->createMock('ilCtrl');
36  $ilCtrl_mock->expects($this->any())->method('saveParameter');
37  $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
38  $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
39 
40  require_once './Services/Language/classes/class.ilLanguage.php';
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  // Arrange
53  require_once './Modules/TestQuestionPool/classes/class.assOrderingHorizontalGUI.php';
54 
55  // Act
56  $instance = new assOrderingHorizontalGUI();
57 
58  $this->assertInstanceOf('assOrderingHorizontalGUI', $instance);
59  }
60 }
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)