Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
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‎

Lines changed: 2 additions & 8 deletions
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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /