Class ilChatroomInfoTaskTest.
More...
◆ setUp()
ilChatroomInfoTaskTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 17 of file class.ilChatroomInfoTaskTest.php.
References ilChatroomAbstractTaskTest\createGlobalIlCtrlMock(), ilChatroomAbstractTest\createGlobalIlDBMock(), ilChatroomAbstractTaskTest\createGlobalIlLanguageMock(), ilChatroomAbstractTaskTest\createGlobalRbacSystemMock(), ilChatroomAbstractTaskTest\createIlObjChatroomGUIMock(), and ilChatroomAbstractTaskTest\createIlObjChatroomMock().
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'),
createIlObjChatroomMock($id)
createGlobalRbacSystemMock()
createIlObjChatroomGUIMock($object)
createGlobalIlLanguageMock()
◆ testExecuteDefault()
ilChatroomInfoTaskTest::testExecuteDefault |
( |
| ) |
|
Definition at line 41 of file class.ilChatroomInfoTaskTest.php.
References $_GET, $GLOBALS, and ilChatroomAbstractTaskTest\createGlobalRbacSystemCheckAccessMock().
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');
createGlobalRbacSystemCheckAccessMock($permission, $result, $times=null)
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
◆ $task
ilChatroomInfoTaskTest::$task |
|
protected |
The documentation for this class was generated from the following file: