3 require_once dirname(__FILE__) .
'/../class.ilChatroomAbstractTaskTest.php';
21 if (!defined(
'DB_FETCHMODE_OBJECT')) {
22 define(
'DB_FETCHMODE_OBJECT',
'ASSOC');
25 require_once
'./Modules/Chatroom/classes/gui/class.ilChatroomInfoGUI.php';
34 $this->task = $this->createMock(
36 array(
'sendResponse',
'getRoomByObjectId',
'redirectIfNoPermission',
'createInfoScreenGUI'),
45 require_once
'./Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
46 $infoScreenMock = $this->createMock(
'ilInfoScreenGUI', array(
'addMetaDataSections'), array($this->gui));
47 $infoScreenMock->expects($this->any())->method(
'addMetaDataSections')->with(
53 $this->task->expects($this->any())->method(
'redirectIfNoPermission')->with(
54 $this->equalTo(
'view')
56 $this->task->expects($this->any())->method(
'getRoomByObjectId')->will(
57 $this->returnValue($this->ilChatroomMock)
59 $this->task->expects($this->any())->method(
'createInfoScreenGUI')->will(
60 $this->returnValue($infoScreenMock)
62 $GLOBALS[
'ilCtrl']->expects($this->atLeastOnce())->method(
'forwardCommand');
66 $this->task->executeDefault(null);
70 $this->task->executeDefault(
'method');
Class ilChatroomAbstractTaskTest.
createIlObjChatroomMock($id)
createGlobalRbacSystemCheckAccessMock($permission, $result, $times=null)
createGlobalRbacSystemMock()
createIlObjChatroomGUIMock($object)
Class ilChatroomInfoTaskTest.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
createGlobalIlLanguageMock()