Unit tests.
More...
◆ setUp()
assFlashQuestionTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assFlashQuestionTest.php.
References $ilCtrl, $lng, array, and defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
27 require_once
'./Services/UICore/classes/class.ilCtrl.php';
28 $ilCtrl_mock = $this->getMock(
'ilCtrl');
29 $ilCtrl_mock->expects( $this->any() )->method(
'saveParameter' );
30 $ilCtrl_mock->expects( $this->any() )->method(
'saveParameterByClass' );
32 $ilCtrl = $ilCtrl_mock;
34 require_once
'./Services/Language/classes/class.ilLanguage.php';
35 $lng_mock = $this->getMock(
'ilLanguage',
array(
'txt'),
array(),
'',
false);
40 $ilias_mock =
new stdClass();
41 $ilias_mock->account =
new stdClass();
42 $ilias_mock->account->id = 6;
43 $ilias_mock->account->fullname =
'Esther Tester';
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assFlashQuestionTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 49 of file assFlashQuestionTest.php.
52 require_once
'./Modules/TestQuestionPool/classes/class.assFlashQuestion.php';
57 $this->assertInstanceOf(
'assFlashQuestion', $instance);
Class for Flash based questions.
◆ $backupGlobals
assFlashQuestionTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: