From c9e1448b5dc1d4b90e053bd8c7ffb452fb01b1c0 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Tue, 27 Nov 2018 22:18:02 +0100 Subject: [PATCH] wip --- tests/Channels/ChannelTest.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/Channels/ChannelTest.php b/tests/Channels/ChannelTest.php index 1b0fa8f..ab4dd03 100644 --- a/tests/Channels/ChannelTest.php +++ b/tests/Channels/ChannelTest.php @@ -44,16 +44,19 @@ class ChannelTest extends TestCase } /** @test */ - public function closed_connections_get_removed_from_channel() + public function closed_connections_get_removed_from_all_connected_channels() { - $connection = $this->getConnectedWebSocketConnection(['test-channel']); + $connection = $this->getConnectedWebSocketConnection(['test-channel-1', 'test-channel-2']); - $channel = $this->getChannel($connection, 'test-channel'); + $channel1 = $this->getChannel($connection, 'test-channel-1'); + $channel2 = $this->getChannel($connection, 'test-channel-2'); - $this->assertTrue($channel->hasConnections()); + $this->assertTrue($channel1->hasConnections()); + $this->assertTrue($channel2->hasConnections()); $this->pusherServer->onClose($connection); - $this->assertFalse($channel->hasConnections()); + $this->assertFalse($channel1->hasConnections()); + $this->assertFalse($channel2->hasConnections()); } } \ No newline at end of file