1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 07:14:02 +00:00

test: Remove redundant setup in reverb test

This commit is contained in:
Saksham Gorey 2026-01-05 23:45:52 +05:30
parent 97f93eb5b1
commit fe2191633e

View file

@ -23,14 +23,14 @@ use function Stancl\Tenancy\Tests\withTenantDatabases;
beforeEach(function () { beforeEach(function () {
withTenantDatabases(); withTenantDatabases();
TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably','reverb']; TenancyBroadcastManager::$tenantBroadcasters = ['pusher', 'ably', 'reverb'];
Event::listen(TenancyInitialized::class, BootstrapTenancy::class); Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
Event::listen(TenancyEnded::class, RevertToCentralContext::class); Event::listen(TenancyEnded::class, RevertToCentralContext::class);
}); });
afterEach(function () { 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() { 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() { 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 = new \Stancl\Tenancy\Overrides\TenancyBroadcastManager(app());
$manager->extend('reverb', function() { $manager->extend('reverb', function() {