From 7c7680baf64a1343e7c6a4e2e088cdd4a31c4bd7 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 5 Jun 2023 12:02:41 +0200 Subject: [PATCH] Make PostgresRLSBootstrapper a singleton --- tests/TestCase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index a8fdf1c9..d8a55415 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -16,6 +16,7 @@ use Stancl\Tenancy\Bootstrappers\UrlTenancyBootstrapper; use Stancl\Tenancy\Bootstrappers\MailTenancyBootstrapper; use Stancl\Tenancy\Bootstrappers\RedisTenancyBootstrapper; use Stancl\Tenancy\Bootstrappers\BroadcastTenancyBootstrapper; +use Stancl\Tenancy\Bootstrappers\Integrations\PostgresRLSBootstrapper; use Stancl\Tenancy\Bootstrappers\PrefixCacheTenancyBootstrapper; abstract class TestCase extends \Orchestra\Testbench\TestCase @@ -123,6 +124,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase $app->singleton(BroadcastTenancyBootstrapper::class); $app->singleton(MailTenancyBootstrapper::class); $app->singleton(UrlTenancyBootstrapper::class); + $app->singleton(PostgresRLSBootstrapper::class); } protected function getPackageProviders($app)