updating unit tests
This commit is contained in:
parent
c36504e678
commit
ddc6adedbc
1 changed files with 7 additions and 5 deletions
|
@ -65,6 +65,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
$parsedChannels = Realtime::convertChannels([0 => $channel], $user->getId());
|
$parsedChannels = Realtime::convertChannels([0 => $channel], $user->getId());
|
||||||
|
|
||||||
$this->realtime->subscribe(
|
$this->realtime->subscribe(
|
||||||
|
'1',
|
||||||
'1',
|
'1',
|
||||||
$this->connectionsCount,
|
$this->connectionsCount,
|
||||||
$roles,
|
$roles,
|
||||||
|
@ -89,6 +90,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
$parsedChannels = Realtime::convertChannels([0 => $channel], $user->getId());
|
$parsedChannels = Realtime::convertChannels([0 => $channel], $user->getId());
|
||||||
|
|
||||||
$this->realtime->subscribe(
|
$this->realtime->subscribe(
|
||||||
|
'1',
|
||||||
'1',
|
'1',
|
||||||
$this->connectionsCount,
|
$this->connectionsCount,
|
||||||
$roles,
|
$roles,
|
||||||
|
@ -152,7 +154,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
{
|
{
|
||||||
foreach ($this->allChannels as $index => $channel) {
|
foreach ($this->allChannels as $index => $channel) {
|
||||||
$event = [
|
$event = [
|
||||||
'project' => '1',
|
'projectId' => '1',
|
||||||
'roles' => ['role:all'],
|
'roles' => ['role:all'],
|
||||||
'data' => [
|
'data' => [
|
||||||
'channels' => [
|
'channels' => [
|
||||||
|
@ -185,7 +187,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
$permissions = [$role];
|
$permissions = [$role];
|
||||||
|
|
||||||
$event = [
|
$event = [
|
||||||
'project' => '1',
|
'projectId' => '1',
|
||||||
'roles' => $permissions,
|
'roles' => $permissions,
|
||||||
'data' => [
|
'data' => [
|
||||||
'channels' => [
|
'channels' => [
|
||||||
|
@ -219,7 +221,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
$permissions[] = 'user:user' . (!empty($i) ? $i : '') . $index;
|
$permissions[] = 'user:user' . (!empty($i) ? $i : '') . $index;
|
||||||
}
|
}
|
||||||
$event = [
|
$event = [
|
||||||
'project' => '1',
|
'projectId' => '1',
|
||||||
'roles' => $permissions,
|
'roles' => $permissions,
|
||||||
'data' => [
|
'data' => [
|
||||||
'channels' => [
|
'channels' => [
|
||||||
|
@ -253,7 +255,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
$permissions[] = 'team:team' . $i;
|
$permissions[] = 'team:team' . $i;
|
||||||
}
|
}
|
||||||
$event = [
|
$event = [
|
||||||
'project' => '1',
|
'projectId' => '1',
|
||||||
'roles' => $permissions,
|
'roles' => $permissions,
|
||||||
'data' => [
|
'data' => [
|
||||||
'channels' => [
|
'channels' => [
|
||||||
|
@ -279,7 +281,7 @@ class MessagingChannelsTest extends TestCase
|
||||||
$permissions = ['team:team' . $index . '/' . (empty($index % 2) ? 'admin' : 'member')];
|
$permissions = ['team:team' . $index . '/' . (empty($index % 2) ? 'admin' : 'member')];
|
||||||
|
|
||||||
$event = [
|
$event = [
|
||||||
'project' => '1',
|
'projectId' => '1',
|
||||||
'roles' => $permissions,
|
'roles' => $permissions,
|
||||||
'data' => [
|
'data' => [
|
||||||
'channels' => [
|
'channels' => [
|
||||||
|
|
Loading…
Reference in a new issue