mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 18:04: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:
parent
2ae1f79d50
commit
b1f0d0a43c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue