Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit be9e21e

Browse files
committed
wip
1 parent 90b2f3e commit be9e21e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/TestCase.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,13 @@ protected function newActiveConnection(array $channelsToJoin = [], string $appKe
320320
*
321321
* @param string $channel
322322
* @param array $user
323+
* @param string $appKey
324+
* @param array $headers
323325
* @return Mocks\Connection
324326
*/
325-
protected function newPresenceConnection($channel, array $user = [])
327+
protected function newPresenceConnection($channel, array $user = [], string $appKey = 'TestKey', array $headers = [])
326328
{
327-
$connection = $this->newConnection();
329+
$connection = $this->newConnection($appKey, $headers);
328330

329331
$this->pusherServer->onOpen($connection);
330332

@@ -355,11 +357,13 @@ protected function newPresenceConnection($channel, array $user = [])
355357
* Join a private channel.
356358
*
357359
* @param string $channel
360+
* @param string $appKey
361+
* @param array $headers
358362
* @return Mocks\Connection
359363
*/
360-
protected function newPrivateConnection($channel)
364+
protected function newPrivateConnection($channel, string $appKey = 'TestKey', array $headers = [])
361365
{
362-
$connection = $this->newConnection();
366+
$connection = $this->newConnection($appKey, $headers);
363367

364368
$this->pusherServer->onOpen($connection);
365369

0 commit comments

Comments
 (0)