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

Commit fd2070f

Browse files
committed
update tests
1 parent 171480d commit fd2070f

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

tests/FetchChannelTest.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public function test_it_returns_presence_channel_information()
9898

9999
public function test_it_returns_404_for_invalid_channels()
100100
{
101+
$this->skipOnRedisReplication();
102+
101103
$this->expectException(HttpException::class);
102104
$this->expectExceptionMessage('Unknown channel');
103105

@@ -119,13 +121,5 @@ public function test_it_returns_404_for_invalid_channels()
119121
$controller = app(FetchChannel::class);
120122

121123
$controller->onOpen($connection, $request);
122-
123-
/** @var JsonResponse $response */
124-
$response = array_pop($connection->sentRawData);
125-
126-
$this->assertSame([
127-
'occupied' => true,
128-
'subscription_count' => 2,
129-
], json_decode($response->getContent(), true));
130124
}
131125
}

tests/TestCase.php

+1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ protected function newConnection(string $appKey = 'TestKey', array $headers = []
332332
{
333333
$connection = new Mocks\Connection;
334334

335+
$connection->lastPongedAt = now();
335336
$connection->httpRequest = new Request('GET', "/?appKey={$appKey}", $headers);
336337

337338
return $connection;

0 commit comments

Comments
 (0)