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

Commit d410c02

Browse files
committed
Fixed tests
1 parent c79bac0 commit d410c02

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

tests/Channels/PresenceChannelReplicationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function clients_with_valid_auth_signatures_can_join_presence_channels()
5050
$connection->socketId,
5151
json_encode($channelData),
5252
])
53-
->assertCalledWithArgs('hgetall', ['1234:presence-channel'])
53+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-channel'])
5454
->assertCalled('publish');
5555
}
5656

@@ -83,7 +83,7 @@ public function clients_with_valid_auth_signatures_can_leave_presence_channels()
8383

8484
$this->getPublishClient()
8585
->assertCalled('hset')
86-
->assertCalledWithArgs('hgetall', ['1234:presence-channel'])
86+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-channel'])
8787
->assertCalled('publish');
8888

8989
$this->getPublishClient()
@@ -130,7 +130,7 @@ public function clients_with_no_user_info_can_join_presence_channels()
130130

131131
$this->getPublishClient()
132132
->assertCalled('hset')
133-
->assertcalledWithArgs('hgetall', ['1234:presence-channel'])
133+
->assertcalledWithArgs('hgetall', ['laravel_database_1234:presence-channel'])
134134
->assertCalled('publish');
135135
}
136136
}

tests/HttpApi/FetchChannelsReplicationTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public function replication_it_returns_the_channel_information()
4949

5050
$this->getPublishClient()
5151
->assertCalled('hset')
52-
->assertCalledWithArgs('hgetall', ['1234:presence-channel'])
52+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-channel'])
5353
->assertCalled('publish')
5454
->assertCalled('multi')
55-
->assertCalledWithArgs('hlen', ['1234:presence-channel'])
55+
->assertCalledWithArgs('hlen', ['laravel_database_1234:presence-channel'])
5656
->assertCalled('exec');
5757
}
5858

@@ -89,14 +89,14 @@ public function replication_it_returns_the_channel_information_for_prefix()
8989

9090
$this->getPublishClient()
9191
->assertCalled('hset')
92-
->assertCalledWithArgs('hgetall', ['1234:presence-global.1'])
93-
->assertCalledWithArgs('hgetall', ['1234:presence-global.2'])
94-
->assertCalledWithArgs('hgetall', ['1234:presence-notglobal.2'])
92+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-global.1'])
93+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-global.2'])
94+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-notglobal.2'])
9595
->assertCalled('publish')
9696
->assertCalled('multi')
97-
->assertCalledWithArgs('hlen', ['1234:presence-global.1'])
98-
->assertCalledWithArgs('hlen', ['1234:presence-global.2'])
99-
->assertNotCalledWithArgs('hlen', ['1234:presence-notglobal.2'])
97+
->assertCalledWithArgs('hlen', ['laravel_database_1234:presence-global.1'])
98+
->assertCalledWithArgs('hlen', ['laravel_database_1234:presence-global.2'])
99+
->assertNotCalledWithArgs('hlen', ['laravel_database_1234:presence-notglobal.2'])
100100
->assertCalled('exec');
101101
}
102102

@@ -134,14 +134,14 @@ public function replication_it_returns_the_channel_information_for_prefix_with_u
134134

135135
$this->getPublishClient()
136136
->assertCalled('hset')
137-
->assertCalledWithArgs('hgetall', ['1234:presence-global.1'])
138-
->assertCalledWithArgs('hgetall', ['1234:presence-global.2'])
139-
->assertCalledWithArgs('hgetall', ['1234:presence-notglobal.2'])
137+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-global.1'])
138+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-global.2'])
139+
->assertCalledWithArgs('hgetall', ['laravel_database_1234:presence-notglobal.2'])
140140
->assertCalled('publish')
141141
->assertCalled('multi')
142-
->assertCalledWithArgs('hlen', ['1234:presence-global.1'])
143-
->assertCalledWithArgs('hlen', ['1234:presence-global.2'])
144-
->assertNotCalledWithArgs('hlen', ['1234:presence-notglobal.2'])
142+
->assertCalledWithArgs('hlen', ['laravel_database_1234:presence-global.1'])
143+
->assertCalledWithArgs('hlen', ['laravel_database_1234:presence-global.2'])
144+
->assertNotCalledWithArgs('hlen', ['laravel_database_1234:presence-notglobal.2'])
145145
->assertCalled('exec');
146146
}
147147

tests/PubSub/RedisDriverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function redis_listener_responds_properly_on_payload()
4444

4545
$this->getSubscribeClient()
4646
->assertEventDispatched('message')
47-
->assertCalledWithArgs('subscribe', ['1234:test-channel'])
47+
->assertCalledWithArgs('subscribe', ['laravel_database_1234:test-channel'])
4848
->assertCalledWithArgs('onMessage', [
4949
'1234:test-channel', $payload,
5050
]);

0 commit comments

Comments
 (0)