19 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
20 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
21 ilUnitUtil::performInitialisation();
23 chdir(dirname(__FILE__));
26 require_once
'./Services/UICore/classes/class.ilCtrl.php';
27 $ilCtrl_mock = $this->createMock(
'ilCtrl');
28 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
29 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
31 $ilCtrl = $ilCtrl_mock;
33 require_once
'./Services/Language/classes/class.ilLanguage.php';
34 $lng_mock = $this->createMock(
'ilLanguage',
array(
'txt'),
array(),
'',
false);
39 $ilias_mock =
new stdClass();
40 $ilias_mock->account =
new stdClass();
41 $ilias_mock->account->id = 6;
42 $ilias_mock->account->fullname =
'Esther Tester';
51 require_once
'./Modules/TestQuestionPool/classes/class.assSingleChoiceGUI.php';
56 $this->assertInstanceOf(
'assSingleChoiceGUI', $instance);
test_instantiateObject_shouldReturnInstance()
Create styles array
The data for the language used.
Unit tests for single choice questions.
Single choice question GUI representation.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'