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

Get central DB from config in harden test

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
lukinovec 2026-05-01 12:34:28 +02:00 committed by GitHub
parent 2ae1f79d50
commit b1f0d0a43c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ test('harden prevents tenants from using the central database', function () {
$tenant = Tenant::create(); $tenant = Tenant::create();
$tenant->update([ $tenant->update([
'tenancy_db_name' => 'main', // Central database name 'tenancy_db_name' => config('database.connections.central.database'), // Central database name
]); ]);
// Harden blocks initialization for tenants that use central database // Harden blocks initialization for tenants that use central database