ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilChatroomPostMessageTaskTest Class Reference

Class ilChatroomPostMessageTaskTest. More...

+ Inheritance diagram for ilChatroomPostMessageTaskTest:
+ Collaboration diagram for ilChatroomPostMessageTaskTest:

Public Member Functions

 testExecuteDefaultDies ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from ilChatroomAbstractTaskTest
 setUp ()
 
 createGlobalIlLanguageMock ()
 
 createGlobalRbacSystemMock ()
 
 createGlobalRbacSystemCheckAccessMock ($permission, $result, $times=null)
 
 createGlobalIlCtrlMock ()
 
 createGlobalIlUserMock ()
 
 createIlObjChatroomGUIMock ($object)
 
 createIlObjChatroomGUIGetConnectorMock ($returnValue)
 
 createIlChatroomIsOwnerOfPrivateRoomMock ($userId, $subRoomId, $result)
 
 createIlChatroomUserGetUserIdMock ($userId)
 
 createIlChatroomServerConnectorMock ($settings)
 
 createIlChatroomServerConnectorFileGetContentsMock ($returnValue)
 
 createIlObjChatroomMock ($id)
 
 createSendResponseMock ($mock, $response)
 
- Protected Member Functions inherited from ilChatroomAbstractTest
 setUp ()
 
 createIlChatroomMock ()
 
 createIlChatroomUserMock ()
 
 createGlobalIlDBMock ()
 

Protected Attributes

 $task
 
- Protected Attributes inherited from ilChatroomAbstractTaskTest
 $gui
 
 $ilChatroomServerConnectorMock
 
 $object
 
- Protected Attributes inherited from ilChatroomAbstractTest
 $ilChatroomMock
 
 $ilChatroomUserMock
 

Additional Inherited Members

- Data Fields inherited from ilChatroomAbstractTaskTest
const TEST_REF_ID = 99
 

Detailed Description

Member Function Documentation

◆ setUp()

ilChatroomPostMessageTaskTest::setUp ( )
protected

Definition at line 16 of file class.ilChatroomPostMessageTaskTest.php.

References array, ilChatroomAbstractTaskTest\createIlObjChatroomGUIMock(), and ilChatroomAbstractTaskTest\createIlObjChatroomMock().

17  {
18  parent::setUp();
19 
20  require_once './Modules/Chatroom/classes/gui/class.ilChatroomPostMessageGUI.php';
21 
22  $this->createIlObjChatroomMock(15);
23  $this->createIlObjChatroomGUIMock($this->object);
24 
25  $this->task = $this->getMock(
26  'ilChatroomPostMessageGUI',
27  array('sendResponse', 'getRoomByObjectId', 'redirectIfNoPermission'),
28  array($this->gui)
29  );
30  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ testExecuteDefaultDies()

ilChatroomPostMessageTaskTest::testExecuteDefaultDies ( )

Definition at line 32 of file class.ilChatroomPostMessageTaskTest.php.

33  {
34  $this->setExpectedException('Exception', 'METHOD_NOT_IN_USE');
35  $this->task->executeDefault(null);
36  }

Field Documentation

◆ $task

ilChatroomPostMessageTaskTest::$task
protected

Definition at line 14 of file class.ilChatroomPostMessageTaskTest.php.


The documentation for this class was generated from the following file: