From af14d403c57b04a0d7992a6a5afbb9ceda9430ec Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 10 Jul 2026 15:54:27 +0200 Subject: [PATCH] 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) --- tests/Bootstrappers/BroadcastChannelPrefixBootstrapperTest.php | 2 +- tests/Bootstrappers/BroadcastingConfigBootstrapperTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Bootstrappers/BroadcastChannelPrefixBootstrapperTest.php b/tests/Bootstrappers/BroadcastChannelPrefixBootstrapperTest.php index 3e93cba7..352a3606 100644 --- a/tests/Bootstrappers/BroadcastChannelPrefixBootstrapperTest.php +++ b/tests/Bootstrappers/BroadcastChannelPrefixBootstrapperTest.php @@ -196,7 +196,7 @@ test('broadcasting channel helpers register channels correctly', function() { // Register a tenant broadcasting channel (almost identical to the original channel, just able to accept the tenant key) tenant_channel($channelName, $channelClosure); - // Tenant channel registered – its name is correctly prefixed ("{tenant}.user.{userId}") + // Tenant channel registered – its name is correctly prefixed ("{tenant}.user.{userName}") $tenantChannelClosure = $getChannels()->first(fn ($closure, $name) => $name === "{tenant}.$channelName"); expect($tenantChannelClosure)->toBe($centralChannelClosure); diff --git a/tests/Bootstrappers/BroadcastingConfigBootstrapperTest.php b/tests/Bootstrappers/BroadcastingConfigBootstrapperTest.php index 63295b06..418d9f6d 100644 --- a/tests/Bootstrappers/BroadcastingConfigBootstrapperTest.php +++ b/tests/Bootstrappers/BroadcastingConfigBootstrapperTest.php @@ -310,7 +310,6 @@ test('mappings specified in credentialsMap override default mapPresets', functio 'broadcasting_key' => 'custom_value', ]); - tenancy()->initialize($tenant); expect(config("broadcasting.connections.{$driver}.key"))->toBe('custom_value');