ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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(dirname(__FILE__));
33  chdir('../../../');
34 
35  parent::setUp();
36 
37  $ilCtrl_mock = $this->createMock('ilCtrl');
38  $ilCtrl_mock->expects($this->any())->method('saveParameter');
39  $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
40  $this->setGlobalVariable('ilCtrl', $ilCtrl_mock);
41 
42  $lng_mock = $this->createMock('ilLanguage', array('txt'), array(), '', false);
43  //$lng_mock->expects( $this->once() )->method( 'txt' )->will( $this->returnValue('Test') );
44  $this->setGlobalVariable('lng', $lng_mock);
45 
46  $this->setGlobalVariable('ilias', $this->getIliasMock());
47  $this->setGlobalVariable('tpl', $this->getGlobalTemplateMock());
48  $this->setGlobalVariable('ilDB', $this->getDatabaseMock());
49  }
50 
52  {
53  // Act
54  $instance = new assTextSubset();
55 
56  $this->assertInstanceOf('assTextSubset', $instance);
57  }
58 }
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...