mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 15:24:03 +00:00
DATABASE_URL test: set config for both datasets
This commit is contained in:
parent
52f6857302
commit
0ce3d863ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
||||
if ($databaseUrl) {
|
||||
pest()->expectException(Exception::class);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue