19 declare(strict_types=1);
37 protected function setUp(): void
41 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
47 $this->getMockBuilder(ilGlobalTemplateInterface::class)->getMock()
67 $this->ilChatroomMock = $this->getMockBuilder(ilChatroom::class)->disableOriginalConstructor()->onlyMethods(
68 [
'isOwnerOfPrivateRoom',
'clearMessages']
79 $this->ilChatroomUserMock = $this->getMockBuilder(ilChatroomUser::class)->disableOriginalConstructor()->onlyMethods(
80 [
'getUserId',
'getUsername']
91 $db = $this->getMockBuilder(ilDBInterface::class)->getMock();
92 $db->method(
'quote')->willReturnCallback(
static function ($arg):
string {
93 return "'" . $arg .
"'";
Class ilChatroomAbstractTest.
createIlChatroomUserMock()
Customizing of pimple-DIC for ILIAS.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
setGlobalVariable(string $name, $value)