Unit tests.
More...
◆ setUp()
assErrorTextGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assErrorTextGUITest.php.
References $ilCtrl, $lng, array, and defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
25 require_once
'./Services/UICore/classes/class.ilCtrl.php';
26 $ilCtrl_mock = $this->createMock(
'ilCtrl');
27 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
28 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
30 $ilCtrl = $ilCtrl_mock;
32 require_once
'./Services/Language/classes/class.ilLanguage.php';
33 $lng_mock = $this->createMock(
'ilLanguage',
array(
'txt'),
array(),
'',
false);
38 $ilias_mock =
new stdClass();
39 $ilias_mock->account =
new stdClass();
40 $ilias_mock->account->id = 6;
41 $ilias_mock->account->fullname =
'Esther Tester';
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assErrorTextGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 46 of file assErrorTextGUITest.php.
50 require_once
'./Modules/TestQuestionPool/classes/class.assErrorTextGUI.php';
55 $this->assertInstanceOf(
'assErrorTextGUI', $instance);
The assErrorTextGUI class encapsulates the GUI representation for error text questions.
◆ $backupGlobals
assErrorTextGUITest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: