ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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  $this->setGlobalVariable('ilLog', $this->createMock(ilLogger::class));
35 
36  $ilCtrl_mock = $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock();
37  $ilCtrl_mock->expects($this->any())->method('saveParameter');
38  $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
39  $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
40 
41  $ilias_mock = new stdClass();
42  $ilias_mock->account = new stdClass();
43  $ilias_mock->account->id = 6;
44  $ilias_mock->account->fullname = 'Esther Tester';
45  $this->setGlobalVariable('ilias', $ilias_mock);
46  $this->setGlobalVariable('tpl', $this->getGlobalTemplateMock());
47  }
48 
50  {
51  // Act
52  $instance = new assNumericGUI();
53 
54  $this->assertInstanceOf('assNumericGUI', $instance);
55  }
56 }
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)