21 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
22 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
23 ilUnitUtil::performInitialisation();
25 chdir(dirname(__FILE__));
32 require_once
'./Modules/Chatroom/classes/class.ilChatroom.php';
33 require_once
'./Services/Utilities/classes/class.ilUtil.php';
35 $this->ilChatroomMock = $this->getMockBuilder(
'ilChatroom')->disableOriginalConstructor()->setMethods(
36 array(
'isOwnerOfPrivateRoom',
'clearMessages')
44 require_once
'./Modules/Chatroom/classes/class.ilChatroomUser.php';
46 $this->ilChatroomUserMock = $this->getMockBuilder(
'ilChatroomUser')->disableOriginalConstructor()->setMethods(
47 array(
'getUserId',
'getUsername')
55 $GLOBALS[
'ilDB'] = $this->getMockBuilder(
'ilDBMySQL')->disableOriginalConstructor()->setMethods(
56 array(
'quote',
'query',
'fetchAssoc')
Class ilChatroomAbstractTest.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
createIlChatroomUserMock()
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'