1
0
Fork 0
mirror of synced 2024-07-01 12:40:34 +12:00

updating unit tests

This commit is contained in:
fogelito 2022-06-19 18:08:57 +03:00
parent c36504e678
commit ddc6adedbc

View file

@ -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' => [