Unit tests.
More...
Unit tests.
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Definition at line 11 of file assNumericGUITest.php.
◆ setUp()
assNumericGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assNumericGUITest.php.
References $DIC, and $GLOBALS.
17 if (defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
24 require_once
'./Services/UICore/classes/class.ilCtrl.php';
25 $ilCtrl_mock = $this->createMock(
'ilCtrl');
26 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
27 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
29 unset($DIC[
'ilCtrl']);
30 $DIC[
'ilCtrl'] = $ilCtrl_mock;
33 require_once
'./Services/Language/classes/class.ilLanguage.php';
34 $lng_mock = $this->createMock(
'ilLanguage', array(
'txt'), array(),
'',
false);
38 $DIC[
'lng'] = $lng_mock;
42 $ilias_mock->account =
new stdClass();
43 $ilias_mock->account->id = 6;
44 $ilias_mock->account->fullname =
'Esther Tester';
47 $DIC[
'ilias'] = $ilias_mock;
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
◆ test_instantiateObject_shouldReturnInstance()
assNumericGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 52 of file assNumericGUITest.php.
55 require_once
'./Modules/TestQuestionPool/classes/class.assNumericGUI.php';
60 $this->assertInstanceOf(
'assNumericGUI', $instance);
Numeric question GUI representation.
◆ $backupGlobals
assNumericGUITest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: