This commit is contained in:
Alex Renoki 2020-09-11 15:57:51 +03:00
parent 90b2f3ebc2
commit be9e21e518
1 changed files with 8 additions and 4 deletions

View File

@ -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);