mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 05:34:04 +00:00
test: Remove redundant setup in reverb test
This commit is contained in:
parent
97f93eb5b1
commit
fe2191633e
1 changed files with 2 additions and 5 deletions
|
|
@ -23,14 +23,14 @@ use function Stancl\Tenancy\Tests\withTenantDatabases;
|
|||
|
||||
beforeEach(function () {
|
||||
withTenantDatabases();
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably','reverb'];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
|
||||
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
|
||||
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably','reverb'];
|
||||
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
});
|
||||
|
||||
test('bound broadcaster instance is the same before initializing tenancy and after ending it', function() {
|
||||
|
|
@ -174,9 +174,6 @@ test('broadcasting channel helpers register channels correctly', function() {
|
|||
});
|
||||
|
||||
test('reverb driver triggers tenant context binding', function() {
|
||||
// Add reverb to the list of tenant broadcasters
|
||||
\Stancl\Tenancy\Overrides\TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
|
||||
|
||||
$manager = new \Stancl\Tenancy\Overrides\TenancyBroadcastManager(app());
|
||||
|
||||
$manager->extend('reverb', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue