1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 18:04:03 +00:00

DATABASE_URL test: set config for both datasets

This commit is contained in:
lukinovec 2026-05-01 12:11:00 +02:00
parent 52f6857302
commit 0ce3d863ce

View file

@ -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);
}