mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 19:44:03 +00:00
Reset BroadcastingConfigBootstrapper::$mapPresets in tests
This commit is contained in:
parent
f3652a8509
commit
a7acd07e70
1 changed files with 36 additions and 0 deletions
|
|
@ -19,12 +19,48 @@ beforeEach(function () {
|
|||
|
||||
BroadcastingConfigBootstrapper::$broadcaster = null;
|
||||
BroadcastingConfigBootstrapper::$credentialsMap = [];
|
||||
BroadcastingConfigBootstrapper::$mapPresets = [
|
||||
'pusher' => [
|
||||
'broadcasting.connections.pusher.key' => 'pusher_key',
|
||||
'broadcasting.connections.pusher.secret' => 'pusher_secret',
|
||||
'broadcasting.connections.pusher.app_id' => 'pusher_app_id',
|
||||
'broadcasting.connections.pusher.options.cluster' => 'pusher_cluster',
|
||||
],
|
||||
'reverb' => [
|
||||
'broadcasting.connections.reverb.key' => 'reverb_key',
|
||||
'broadcasting.connections.reverb.secret' => 'reverb_secret',
|
||||
'broadcasting.connections.reverb.app_id' => 'reverb_app_id',
|
||||
'broadcasting.connections.reverb.options.cluster' => 'reverb_cluster',
|
||||
],
|
||||
'ably' => [
|
||||
'broadcasting.connections.ably.key' => 'ably_key',
|
||||
'broadcasting.connections.ably.public' => 'ably_public',
|
||||
],
|
||||
];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
BroadcastingConfigBootstrapper::$broadcaster = null;
|
||||
BroadcastingConfigBootstrapper::$credentialsMap = [];
|
||||
BroadcastingConfigBootstrapper::$mapPresets = [
|
||||
'pusher' => [
|
||||
'broadcasting.connections.pusher.key' => 'pusher_key',
|
||||
'broadcasting.connections.pusher.secret' => 'pusher_secret',
|
||||
'broadcasting.connections.pusher.app_id' => 'pusher_app_id',
|
||||
'broadcasting.connections.pusher.options.cluster' => 'pusher_cluster',
|
||||
],
|
||||
'reverb' => [
|
||||
'broadcasting.connections.reverb.key' => 'reverb_key',
|
||||
'broadcasting.connections.reverb.secret' => 'reverb_secret',
|
||||
'broadcasting.connections.reverb.app_id' => 'reverb_app_id',
|
||||
'broadcasting.connections.reverb.options.cluster' => 'reverb_cluster',
|
||||
],
|
||||
'ably' => [
|
||||
'broadcasting.connections.ably.key' => 'ably_key',
|
||||
'broadcasting.connections.ably.public' => 'ably_public',
|
||||
],
|
||||
];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue