1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 18:44:04 +00:00

Correct channel prefix test comments

This commit is contained in:
lukinovec 2026-04-13 15:44:35 +02:00
parent 4aeaa66b23
commit b3d5197702

View file

@ -215,12 +215,12 @@ test('broadcasting channel helpers register channels correctly', function() {
tenancy()->initialize($tenant);
// The channel closure runs in the central context
// Only the central user is available
// The channel closure runs in the tenant context
// Only the tenant user is available
expect($tenantChannelClosure($centralUser, $tenant->getTenantKey(), $tenantUser->name))->toBeFalse();
expect($tenantChannelClosure($tenantUser, $tenant->getTenantKey(), $tenantUser->name))->toBeTrue();
// Use a new channel instance to delete the previously registered channels before testing the universal_channel helper
// Use a new channel instance to delete the previously registered channels before testing the global_channel helper
$broadcastManager->purge($driver);
$broadcastManager->extend($driver, fn () => new NullBroadcaster);