3 require_once dirname(__FILE__) .
'/../class.ilChatroomAbstractTaskTest.php';
21 if(!
defined(
'DB_FETCHMODE_OBJECT'))
23 define(
'DB_FETCHMODE_OBJECT',
'ASSOC');
26 require_once
'./Modules/Chatroom/classes/gui/class.ilChatroomInfoGUI.php';
35 $this->task = $this->getMock(
37 array(
'sendResponse',
'getRoomByObjectId',
'redirectIfNoPermission',
'createInfoScreenGUI'),
46 require_once
'./Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
47 $infoScreenMock = $this->getMock(
'ilInfoScreenGUI',
array(
'addMetaDataSections'),
array($this->gui));
48 $infoScreenMock->expects($this->any())->method(
'addMetaDataSections')->with(
49 $this->equalTo(15), 0, null
52 $this->task->expects($this->any())->method(
'redirectIfNoPermission')->with(
53 $this->equalTo(
'view')
55 $this->task->expects($this->any())->method(
'getRoomByObjectId')->will(
56 $this->returnValue($this->ilChatroomMock)
58 $this->task->expects($this->any())->method(
'createInfoScreenGUI')->will(
59 $this->returnValue($infoScreenMock)
61 $GLOBALS[
'ilCtrl']->expects($this->atLeastOnce())->method(
'forwardCommand');
65 $this->task->executeDefault(null);
69 $this->task->executeDefault(
'method');
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Class ilChatroomAbstractTaskTest.
createIlObjChatroomMock($id)
createGlobalRbacSystemCheckAccessMock($permission, $result, $times=null)
createGlobalRbacSystemMock()
Create styles array
The data for the language used.
createIlObjChatroomGUIMock($object)
Class ilChatroomInfoTaskTest.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
createGlobalIlLanguageMock()