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

BroadcastingConfigBootstrapper: test mapping credentials

Test that BroadcastingConfigBootstrapper correctly maps tenant properties to broadcasting config/credentials, and that the credentials don't leak when switching contexts. Also add the `$config` property to `TestingBroadcaster` so that we can access the credentials used by the broadcaster.
This commit is contained in:
lukinovec 2026-03-31 15:32:45 +02:00
parent fb654e7a6b
commit 7d749eb592
2 changed files with 44 additions and 1 deletions

View file

@ -6,7 +6,8 @@ use Illuminate\Broadcasting\Broadcasters\Broadcaster;
class TestingBroadcaster extends Broadcaster {
public function __construct(
public string $message = 'nothing'
public string $message = 'nothing',
public array $config = [],
) {}
public function auth($request)