Unit tests for single choice questions.
More...
Unit tests for single choice questions.
- Author
- Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
- Version
- Id
- assSingleChoiceTest.php 35946 2012-08-02 21:48:44Z mbecker
Definition at line 13 of file assSingleChoiceGUITest.php.
◆ setUp()
assSingleChoiceGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 17 of file assSingleChoiceGUITest.php.
References $ilCtrl, $lng, array, and defined.
19 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
21 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
22 ilUnitUtil::performInitialisation();
26 chdir( dirname( __FILE__ ) );
29 require_once
'./Services/UICore/classes/class.ilCtrl.php';
30 $ilCtrl_mock = $this->getMock(
'ilCtrl');
31 $ilCtrl_mock->expects( $this->any() )->method(
'saveParameter' );
32 $ilCtrl_mock->expects( $this->any() )->method(
'saveParameterByClass' );
34 $ilCtrl = $ilCtrl_mock;
36 require_once
'./Services/Language/classes/class.ilLanguage.php';
37 $lng_mock = $this->getMock(
'ilLanguage',
array(
'txt'),
array(),
'',
false);
42 $ilias_mock =
new stdClass();
43 $ilias_mock->account =
new stdClass();
44 $ilias_mock->account->id = 6;
45 $ilias_mock->account->fullname =
'Esther Tester';
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assSingleChoiceGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 51 of file assSingleChoiceGUITest.php.
54 require_once
'./Modules/TestQuestionPool/classes/class.assSingleChoiceGUI.php';
59 $this->assertInstanceOf(
'assSingleChoiceGUI', $instance);
Single choice question GUI representation.
◆ $backupGlobals
assSingleChoiceGUITest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: