ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilChatroomInitialTaskTest Class Reference

Class ilChatroomInitialTaskTest. More...

+ Inheritance diagram for ilChatroomInitialTaskTest:
+ Collaboration diagram for ilChatroomInitialTaskTest:

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()

ilChatroomInitialTaskTest::setUp ( )
protected

Definition at line 17 of file class.ilChatroomInitialTaskTest.php.

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

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

◆ testExecuteDefaultDies()

ilChatroomInitialTaskTest::testExecuteDefaultDies ( )

Definition at line 33 of file class.ilChatroomInitialTaskTest.php.

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

Field Documentation

◆ $task

ilChatroomInitialTaskTest::$task
protected

Definition at line 15 of file class.ilChatroomInitialTaskTest.php.


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