From be9e21e5188894588ab65c3c52520e0cf1ec2186 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 11 Sep 2020 15:57:51 +0300 Subject: [PATCH] wip --- tests/TestCase.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index b361931..b63fcf3 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -320,11 +320,13 @@ abstract class TestCase extends Orchestra * * @param string $channel * @param array $user + * @param string $appKey + * @param array $headers * @return Mocks\Connection */ - protected function newPresenceConnection($channel, array $user = []) + protected function newPresenceConnection($channel, array $user = [], string $appKey = 'TestKey', array $headers = []) { - $connection = $this->newConnection(); + $connection = $this->newConnection($appKey, $headers); $this->pusherServer->onOpen($connection); @@ -355,11 +357,13 @@ abstract class TestCase extends Orchestra * Join a private channel. * * @param string $channel + * @param string $appKey + * @param array $headers * @return Mocks\Connection */ - protected function newPrivateConnection($channel) + protected function newPrivateConnection($channel, string $appKey = 'TestKey', array $headers = []) { - $connection = $this->newConnection(); + $connection = $this->newConnection($appKey, $headers); $this->pusherServer->onOpen($connection);