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 assBaseTestCase\getDatabaseMock(), assBaseTestCase\getGlobalTemplateMock(), assBaseTestCase\getIliasMock(), and assBaseTestCase\setGlobalVariable().
19 if (defined(
'ILIAS_PHPUNIT_CONTEXT')) {
20 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
21 ilUnitUtil::performInitialisation();
23 chdir(dirname(__FILE__));
28 require_once
'./Services/UICore/classes/class.ilCtrl.php';
29 $ilCtrl_mock = $this->createMock(
'ilCtrl');
30 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
31 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
34 require_once
'./Services/Language/classes/class.ilLanguage.php';
35 $lng_mock = $this->createMock(
'ilLanguage', array(
'txt'), array(),
'',
false);
setGlobalVariable($name, $value)
◆ test_instantiateObject_shouldReturnInstance()
assSingleChoiceGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 45 of file assSingleChoiceGUITest.php.
48 require_once
'./Modules/TestQuestionPool/classes/class.assSingleChoiceGUI.php';
53 $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: