ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilChatroomTaskHandlerTest. More...
Public Member Functions | |
testExecuteDefault () | |
testExecuteWithMethodExit () | |
testExecuteWithMethodNotExit () | |
testIsSuccessfull () | |
testCanModerate ($isOwnerOfPrivateRoomValue, $checkAccessValue, $result) | |
canModerateDataProvider More... | |
testExitIfNoRoomExists () | |
testExitIfNoRoomPermissionSuccess () | |
testExitIfNoRoomPermissionFails () | |
testRedirectIfNoPermission () | |
canModerateDataProvider () | |
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 | |
$handler | |
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 |
Class ilChatroomTaskHandlerTest.
Definition at line 9 of file class.ilChatroomTaskHandlerTest.php.
ilChatroomTaskHandlerTest::canModerateDataProvider | ( | ) |
|
protected |
Definition at line 17 of file class.ilChatroomTaskHandlerTest.php.
References ilChatroomAbstractTaskTest\createGlobalIlCtrlMock(), ilChatroomAbstractTaskTest\createGlobalIlLanguageMock(), ilChatroomAbstractTaskTest\createGlobalIlUserMock(), ilChatroomAbstractTaskTest\createGlobalRbacSystemMock(), ilChatroomAbstractTaskTest\createIlObjChatroomGUIMock(), and ilChatroomAbstractTaskTest\createIlObjChatroomMock().
ilChatroomTaskHandlerTest::testCanModerate | ( | $isOwnerOfPrivateRoomValue, | |
$checkAccessValue, | |||
$result | |||
) |
canModerateDataProvider
boolean | $isOwnerOfPrivateRoomValue | |
boolean | $checkAccessValue | |
boolean | $result |
Definition at line 68 of file class.ilChatroomTaskHandlerTest.php.
References $result, ilChatroomAbstractTaskTest\createGlobalRbacSystemCheckAccessMock(), ilChatroomAbstractTaskTest\createIlChatroomIsOwnerOfPrivateRoomMock(), and ilChatroomAbstractTest\createIlChatroomMock().
ilChatroomTaskHandlerTest::testExecuteDefault | ( | ) |
Definition at line 32 of file class.ilChatroomTaskHandlerTest.php.
ilChatroomTaskHandlerTest::testExecuteWithMethodExit | ( | ) |
Definition at line 37 of file class.ilChatroomTaskHandlerTest.php.
ilChatroomTaskHandlerTest::testExecuteWithMethodNotExit | ( | ) |
Definition at line 42 of file class.ilChatroomTaskHandlerTest.php.
ilChatroomTaskHandlerTest::testExitIfNoRoomExists | ( | ) |
Definition at line 80 of file class.ilChatroomTaskHandlerTest.php.
References array, and ilChatroomAbstractTest\createIlChatroomMock().
ilChatroomTaskHandlerTest::testExitIfNoRoomPermissionFails | ( | ) |
Definition at line 111 of file class.ilChatroomTaskHandlerTest.php.
References array, ilChatroomAbstractTaskTest\createGlobalRbacSystemCheckAccessMock(), ilChatroomAbstractTaskTest\createIlChatroomIsOwnerOfPrivateRoomMock(), ilChatroomAbstractTest\createIlChatroomMock(), ilChatroomAbstractTaskTest\createIlChatroomUserGetUserIdMock(), and ilChatroomAbstractTest\createIlChatroomUserMock().
ilChatroomTaskHandlerTest::testExitIfNoRoomPermissionSuccess | ( | ) |
Definition at line 97 of file class.ilChatroomTaskHandlerTest.php.
References ilChatroomAbstractTaskTest\createGlobalRbacSystemCheckAccessMock(), ilChatroomAbstractTaskTest\createIlChatroomIsOwnerOfPrivateRoomMock(), ilChatroomAbstractTest\createIlChatroomMock(), ilChatroomAbstractTaskTest\createIlChatroomUserGetUserIdMock(), and ilChatroomAbstractTest\createIlChatroomUserMock().
ilChatroomTaskHandlerTest::testIsSuccessfull | ( | ) |
ilChatroomTaskHandlerTest::testRedirectIfNoPermission | ( | ) |
Definition at line 138 of file class.ilChatroomTaskHandlerTest.php.
References ilChatroomAbstractTaskTest\createGlobalRbacSystemCheckAccessMock().
|
protected |
Definition at line 15 of file class.ilChatroomTaskHandlerTest.php.