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';
54 require_once
'./Modules/TestQuestionPool/classes/class.assMultipleChoiceGUI.php';
59 $this->assertInstanceOf(
'assMultipleChoiceGUI', $instance);
test_instantiateObject_shouldReturnInstance()
Create styles array
The data for the language used.
Multiple choice question GUI representation.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Unit tests for single choice questions.