ILIAS  release_8 Revision v8.23
assNumericGUITest.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  $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock();
35  $ilCtrl_mock->expects($this->any())->method('saveParameter');
36  $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
37  $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
38 
39  $ilias_mock = new stdClass();
40  $ilias_mock->account = new stdClass();
41  $ilias_mock->account->id = 6;
42  $ilias_mock->account->fullname = 'Esther Tester';
43  $this->setGlobalVariable('ilias', $ilias_mock);
44  $this->setGlobalVariable('tpl', $this->getGlobalTemplateMock());
45  }
46 
48  {
49  // Arrange
50  require_once './Modules/TestQuestionPool/classes/class.assNumericGUI.php';
51 
52  // Act
53  $instance = new assNumericGUI();
54 
55  $this->assertInstanceOf('assNumericGUI', $instance);
56  }
57 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_instantiateObject_shouldReturnInstance()
setGlobalVariable(string $name, $value)