From ddc6adedbc49eb5ef9e8a94530ca66b1fe346357 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 19 Jun 2022 18:08:57 +0300 Subject: [PATCH] updating unit tests --- tests/unit/Messaging/MessagingChannelsTest.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/unit/Messaging/MessagingChannelsTest.php b/tests/unit/Messaging/MessagingChannelsTest.php index e62c273cc8..3351bef575 100644 --- a/tests/unit/Messaging/MessagingChannelsTest.php +++ b/tests/unit/Messaging/MessagingChannelsTest.php @@ -65,6 +65,7 @@ class MessagingChannelsTest extends TestCase $parsedChannels = Realtime::convertChannels([0 => $channel], $user->getId()); $this->realtime->subscribe( + '1', '1', $this->connectionsCount, $roles, @@ -89,6 +90,7 @@ class MessagingChannelsTest extends TestCase $parsedChannels = Realtime::convertChannels([0 => $channel], $user->getId()); $this->realtime->subscribe( + '1', '1', $this->connectionsCount, $roles, @@ -152,7 +154,7 @@ class MessagingChannelsTest extends TestCase { foreach ($this->allChannels as $index => $channel) { $event = [ - 'project' => '1', + 'projectId' => '1', 'roles' => ['role:all'], 'data' => [ 'channels' => [ @@ -185,7 +187,7 @@ class MessagingChannelsTest extends TestCase $permissions = [$role]; $event = [ - 'project' => '1', + 'projectId' => '1', 'roles' => $permissions, 'data' => [ 'channels' => [ @@ -219,7 +221,7 @@ class MessagingChannelsTest extends TestCase $permissions[] = 'user:user' . (!empty($i) ? $i : '') . $index; } $event = [ - 'project' => '1', + 'projectId' => '1', 'roles' => $permissions, 'data' => [ 'channels' => [ @@ -253,7 +255,7 @@ class MessagingChannelsTest extends TestCase $permissions[] = 'team:team' . $i; } $event = [ - 'project' => '1', + 'projectId' => '1', 'roles' => $permissions, 'data' => [ 'channels' => [ @@ -279,7 +281,7 @@ class MessagingChannelsTest extends TestCase $permissions = ['team:team' . $index . '/' . (empty($index % 2) ? 'admin' : 'member')]; $event = [ - 'project' => '1', + 'projectId' => '1', 'roles' => $permissions, 'data' => [ 'channels' => [