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:
parent
fb654e7a6b
commit
7d749eb592
2 changed files with 44 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue