ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
assTextSubsetTest.php
Go to the documentation of this file.
1 <?php
2 
27 {
28  protected $backupGlobals = false;
29 
30  protected function setUp(): void
31  {
32  chdir(__DIR__ . '/../../../../');
33 
34  parent::setUp();
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  $this->setGlobalVariable('lng', $lng_mock);
43 
44  $this->setGlobalVariable('ilias', $this->getIliasMock());
45  $this->setGlobalVariable('ilDB', $this->getDatabaseMock());
46  }
47 
49  {
50  $instance = new assTextSubset();
51 
52  $this->assertInstanceOf(assTextSubset::class, $instance);
53  }
54 }
Class assBaseTestCase.
Class for TextSubset questions.
test_instantiateObject_shouldReturnInstance()
setGlobalVariable(string $name, mixed $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...