Class ilChatroomAbstractTaskTest.
More...
◆ createGlobalIlCtrlMock()
ilChatroomAbstractTaskTest::createGlobalIlCtrlMock |
( |
| ) |
|
|
protected |
◆ createGlobalIlLanguageMock()
ilChatroomAbstractTaskTest::createGlobalIlLanguageMock |
( |
| ) |
|
|
protected |
◆ createGlobalIlUserMock()
ilChatroomAbstractTaskTest::createGlobalIlUserMock |
( |
| ) |
|
|
protected |
◆ createGlobalRbacSystemCheckAccessMock()
ilChatroomAbstractTaskTest::createGlobalRbacSystemCheckAccessMock |
( |
string |
$permission, |
|
|
bool |
$result, |
|
|
?InvocationOrder |
$times = null |
|
) |
| |
|
protected |
Definition at line 77 of file class.ilChatroomAbstractTaskTest.php.
References $GLOBALS.
82 if ($times === null) {
83 $times = $this->any();
86 return $GLOBALS[
'rbacsystem']->expects($times)
87 ->method(
'checkAccess')
88 ->with($this->equalTo($permission))->willReturn(
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
◆ createGlobalRbacSystemMock()
ilChatroomAbstractTaskTest::createGlobalRbacSystemMock |
( |
| ) |
|
|
protected |
◆ createIlChatroomIsOwnerOfPrivateRoomMock()
ilChatroomAbstractTaskTest::createIlChatroomIsOwnerOfPrivateRoomMock |
( |
int |
$userId, |
|
|
int |
$subRoomId, |
|
|
bool |
$result |
|
) |
| |
|
protected |
Definition at line 116 of file class.ilChatroomAbstractTaskTest.php.
121 return $this->ilChatroomMock->method(
'isOwnerOfPrivateRoom')->with(
122 $this->equalTo($userId),
123 $this->equalTo($subRoomId)
124 )->willReturn($result);
◆ createIlChatroomServerConnectorFileGetContentsMock()
ilChatroomAbstractTaskTest::createIlChatroomServerConnectorFileGetContentsMock |
( |
|
$returnValue | ) |
|
|
protected |
◆ createIlChatroomServerConnectorMock()
Definition at line 132 of file class.ilChatroomAbstractTaskTest.php.
References $ilChatroomServerConnectorMock.
135 $this->ilChatroomServerConnectorMock = $this->getMockBuilder(ilChatroomServerConnector::class)->setConstructorArgs(
137 )->onlyMethods([
'file_get_contents'])->getMock();
Class ilChatroomServerConnector.
$ilChatroomServerConnectorMock
◆ createIlChatroomUserGetUserIdMock()
ilChatroomAbstractTaskTest::createIlChatroomUserGetUserIdMock |
( |
int |
$userId | ) |
|
|
protected |
◆ createIlObjChatroomGUIGetConnectorMock()
ilChatroomAbstractTaskTest::createIlObjChatroomGUIGetConnectorMock |
( |
|
$returnValue | ) |
|
|
protected |
◆ createIlObjChatroomMock()
ilChatroomAbstractTaskTest::createIlObjChatroomMock |
( |
int |
$id | ) |
|
|
protected |
Definition at line 149 of file class.ilChatroomAbstractTaskTest.php.
References $object.
151 $this->
object = $this->getMockBuilder(ilObjChatroom::class)->disableOriginalConstructor()->onlyMethods(
154 $this->
object->method(
'getId')->willReturn(
$id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ createSendResponseMock()
ilChatroomAbstractTaskTest::createSendResponseMock |
( |
MockObject |
$mock, |
|
|
|
$response |
|
) |
| |
|
protected |
◆ setUp()
ilChatroomAbstractTaskTest::setUp |
( |
| ) |
|
|
protected |
◆ $gui
ilChatroomAbstractTaskTest::$gui |
|
protected |
◆ $ilChatroomServerConnectorMock
ilChatroomAbstractTaskTest::$ilChatroomServerConnectorMock |
|
protected |
◆ $object
ilChatroomAbstractTaskTest::$object |
|
protected |
The documentation for this class was generated from the following file: