Unit tests.
More...
◆ setUp()
assImagemapQuestionGUITest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assImagemapQuestionGUITest.php.
References assBaseTestCase\getDatabaseMock(), assBaseTestCase\getGlobalTemplateMock(), assBaseTestCase\getIliasMock(), Sabre\Event\once(), and assBaseTestCase\setGlobalVariable().
17 if (defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 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');
32 require_once
'./Services/Language/classes/class.ilLanguage.php';
33 $lng_mock = $this->createMock(
'ilLanguage', array(
'txt'), array(),
'',
false);
34 $lng_mock->expects($this->
once())->method(
'txt')->will($this->returnValue(
'Test'));
setGlobalVariable($name, $value)
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
◆ test_instantiateObject_shouldReturnInstance()
assImagemapQuestionGUITest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 43 of file assImagemapQuestionGUITest.php.
45 $this->markTestIncomplete(
'ilSetting / ilDBInterface -> more mocks needed.');
47 require_once
'./Modules/TestQuestionPool/classes/class.assImagemapQuestionGUI.php';
50 require_once
'./Services/Administration/classes/class.ilSetting.php';
53 $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: