Skip to content

Commit af14d40

Browse files
committed
Delete extra newline, fix comment inconsistency
Use "userName" in the channel helper test's comment for consistency (the channel name uses "userName", the comment used "userId", fixed that)
1 parent d80fed1 commit af14d40

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

tests/Bootstrappers/BroadcastChannelPrefixBootstrapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function formatChannels(array $channels)
196196
// Register a tenant broadcasting channel (almost identical to the original channel, just able to accept the tenant key)
197197
tenant_channel($channelName, $channelClosure);
198198

199-
// Tenant channel registered – its name is correctly prefixed ("{tenant}.user.{userId}")
199+
// Tenant channel registered – its name is correctly prefixed ("{tenant}.user.{userName}")
200200
$tenantChannelClosure = $getChannels()->first(fn ($closure, $name) => $name === "{tenant}.$channelName");
201201
expect($tenantChannelClosure)->toBe($centralChannelClosure);
202202

tests/Bootstrappers/BroadcastingConfigBootstrapperTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@
310310
'broadcasting_key' => 'custom_value',
311311
]);
312312

313-
314313
tenancy()->initialize($tenant);
315314

316315
expect(config("broadcasting.connections.{$driver}.key"))->toBe('custom_value');

0 commit comments

Comments
 (0)