ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilChatroomTaskHandlerMock. More...
Public Member Functions | |
executeDefault ($requestedMethod) | |
testFunc () | |
mockedCanModerate ($room, $subRoomId, $userId) | |
mockedExitIfNoRoomExists ($room) | |
mockedExitIfNoRoomPermission ($room, $subRoomId, $user) | |
sendResponse ($response) | |
Override parent sendResponse for test purposes. More... | |
Public Member Functions inherited from ilChatroomGUIHandler | |
__construct (ilChatroomObjectGUI $gui) | |
sendResponse ($response) | |
Sends a json encoded response and exits the php process. More... | |
hasPermission ($permission) | |
Checks for access with ilRbacSystem. More... | |
execute ($method) | |
Executes given $method if existing, otherwise executes executeDefault() method. More... | |
executeDefault ($requestedMethod) | |
redirectIfNoPermission ($permission) | |
Checks for requested permissions and redirects if the permission check failed. More... | |
isSuccessful ($response) | |
Checks for success param in an json decoded response. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ilChatroomGUIHandler | |
getRoomByObjectId ($objectId) | |
exitIfNoRoomExists ($room) | |
Checks if a ilChatroom exists. More... | |
exitIfNoRoomPermission ($room, $subRoom, $chat_user) | |
Check if user can moderate a chatroom. More... | |
canModerate ($room, $subRoom, $user_id) | |
Checks if the user has permission to moderate a ilChatroom. More... | |
isMainRoom ($subRoomId) | |
Protected Attributes inherited from ilChatroomGUIHandler | |
$gui | |
$ilUser | |
$ilCtrl | |
$ilLng | |
$webDirectory | |
$upload | |
$rbacsystem | |
$mainTpl | |
$ilias | |
$navigationHistory | |
$tree | |
$tabs | |
Class ilChatroomTaskHandlerMock.
Definition at line 9 of file class.ilChatroomTaskHandlerMock.php.
ilChatroomTaskHandlerMock::executeDefault | ( | $requestedMethod | ) |
Definition at line 11 of file class.ilChatroomTaskHandlerMock.php.
ilChatroomTaskHandlerMock::mockedCanModerate | ( | $room, | |
$subRoomId, | |||
$userId | |||
) |
ilChatroom | PHPUnit_Framework_MockObject_MockObject | $room | |
int | $subRoomId | |
int | $userId |
Definition at line 27 of file class.ilChatroomTaskHandlerMock.php.
References ilChatroomGUIHandler\canModerate().
ilChatroomTaskHandlerMock::mockedExitIfNoRoomExists | ( | $room | ) |
ilChatroom | $room |
Definition at line 35 of file class.ilChatroomTaskHandlerMock.php.
References ilChatroomGUIHandler\exitIfNoRoomExists().
ilChatroomTaskHandlerMock::mockedExitIfNoRoomPermission | ( | $room, | |
$subRoomId, | |||
$user | |||
) |
ilChatroom | $room | |
int | $subRoomId | |
ilChatroomUser | $user |
Definition at line 45 of file class.ilChatroomTaskHandlerMock.php.
References $user, and ilChatroomGUIHandler\exitIfNoRoomPermission().
ilChatroomTaskHandlerMock::sendResponse | ( | $response | ) |
Override parent sendResponse for test purposes.
It should echo json encoded data and exit the process.
array | $response |
Exception |
Definition at line 55 of file class.ilChatroomTaskHandlerMock.php.
References $response.
ilChatroomTaskHandlerMock::testFunc | ( | ) |
Definition at line 16 of file class.ilChatroomTaskHandlerMock.php.