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

Add withTenantDatabases to test

This commit is contained in:
lukinovec 2023-01-11 07:22:26 +01:00
parent 23b028da36
commit f09d30aff6

View file

@ -160,6 +160,8 @@ test('tenancy is initialized when retrying jobs', function (bool $shouldEndTenan
})->with([true, false]); })->with([true, false]);
test('the tenant used by the job doesnt change when the current tenant changes', function () { test('the tenant used by the job doesnt change when the current tenant changes', function () {
withTenantDatabases();
$tenant1 = Tenant::create([ $tenant1 = Tenant::create([
'id' => 'acme', 'id' => 'acme',
]); ]);