From 8e919b810149eb66e65734e04f7c5932dd428cbb Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 20 Sep 2022 11:38:07 +0500 Subject: [PATCH] enabled BatchTenancyBootstrapper by default --- assets/config.php | 2 +- tests/TestCase.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/config.php b/assets/config.php index 13b274da..d9d21eaa 100644 --- a/assets/config.php +++ b/assets/config.php @@ -33,7 +33,7 @@ return [ Stancl\Tenancy\Bootstrappers\FilesystemTenancyBootstrapper::class, Stancl\Tenancy\Bootstrappers\QueueTenancyBootstrapper::class, // Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper::class, // Note: phpredis is needed - // Stancl\Tenancy\Bootstrappers\BatchTenancyBootstrapper::class, + Stancl\Tenancy\Bootstrappers\BatchTenancyBootstrapper::class, ], /** diff --git a/tests/TestCase.php b/tests/TestCase.php index 853826df..f7f8b9ad 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -112,8 +112,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase 'tenancy.tenant_model' => Tenant::class, // Use test tenant w/ DBs & domains ]); - $app->singleton(RedisTenancyBootstrapper::class); - $app->singleton(BatchTenancyBootstrapper::class); // todo (Samuel) use proper approach eg config for singleton registration + $app->singleton(RedisTenancyBootstrapper::class); // todo (Samuel) use proper approach eg config for singleton registration } protected function getPackageProviders($app)