From 0ce3d863cedcd2c8ebfa4f0ba3833da980c3e3e6 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 1 May 2026 12:11:00 +0200 Subject: [PATCH] DATABASE_URL test: set config for both datasets --- tests/Bootstrappers/DatabaseTenancyBootstrapperTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Bootstrappers/DatabaseTenancyBootstrapperTest.php b/tests/Bootstrappers/DatabaseTenancyBootstrapperTest.php index 482d6e69..042590f1 100644 --- a/tests/Bootstrappers/DatabaseTenancyBootstrapperTest.php +++ b/tests/Bootstrappers/DatabaseTenancyBootstrapperTest.php @@ -81,9 +81,9 @@ test('harden prevents tenants from using a database of another tenant', function }); test('database tenancy bootstrapper throws an exception if DATABASE_URL is set', function (string|null $databaseUrl) { - if ($databaseUrl) { - config(['database.connections.central.url' => $databaseUrl]); + config(['database.connections.central.url' => $databaseUrl]); + if ($databaseUrl) { pest()->expectException(Exception::class); }