Unit tests.
More...
◆ setUp()
assImagemapQuestionGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assImagemapQuestionGUITest.php.
References $ilCtrl, $lng, array, and defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
24 require_once
'./Services/UICore/classes/class.ilCtrl.php';
25 $ilCtrl_mock = $this->createMock(
'ilCtrl');
26 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
27 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
29 $ilCtrl = $ilCtrl_mock;
31 require_once
'./Services/Language/classes/class.ilLanguage.php';
32 $lng_mock = $this->createMock(
'ilLanguage',
array(
'txt'),
array(),
'',
false);
33 $lng_mock->expects($this->once())->method(
'txt')->will($this->returnValue(
'Test'));
37 $ilias_mock =
new stdClass();
38 $ilias_mock->account =
new stdClass();
39 $ilias_mock->account->id = 6;
40 $ilias_mock->account->fullname =
'Esther Tester';
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObject_shouldReturnInstance()
assImagemapQuestionGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 46 of file assImagemapQuestionGUITest.php.
48 $this->markTestIncomplete(
'ilSetting / ilDBInterface -> more mocks needed.');
50 require_once
'./Modules/TestQuestionPool/classes/class.assImagemapQuestionGUI.php';
53 require_once
'./Services/Administration/classes/class.ilSetting.php';
56 $this->assertInstanceOf(
'assImagemapQuestionGUI', $instance);
Image map question GUI representation.
◆ $backupGlobals
assImagemapQuestionGUITest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: