1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

fix(tests): messaging unit tests

This commit is contained in:
Torsten Dittmann 2021-06-30 16:29:33 +02:00
parent 80c4e378b3
commit 1e6b867378

View file

@ -60,10 +60,7 @@ class MessagingChannelsTest extends TestCase
]
]);
$roles = [
'role:' . (($user->isEmpty()) ? Auth::USER_ROLE_GUEST : Auth::USER_ROLE_MEMBER),
...Auth::getRoles($user)
];
$roles = Auth::getRoles($user);
$parsedChannels = Realtime::convertChannels([0 => $channel], $user);
@ -87,10 +84,7 @@ class MessagingChannelsTest extends TestCase
'$id' => ''
]);
$roles = [
'role:' . (($user->isEmpty()) ? Auth::USER_ROLE_GUEST : Auth::USER_ROLE_MEMBER),
...Auth::getRoles($user)
];
$roles = Auth::getRoles($user);
$parsedChannels = Realtime::convertChannels([0 => $channel], $user);