mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:34:04 +00:00
Keep initial formatting (minimize diff noise)
This commit is contained in:
parent
4e7ad0c4d3
commit
ea019b46ce
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ use function Stancl\Tenancy\Tests\pest;
|
|||
|
||||
test('tenants can be resolved using cached resolvers', function (string $resolver, bool $default) {
|
||||
$tenant = Tenant::create([$tenantColumn = tenantModelColumn($default) => 'acme']);
|
||||
|
||||
$tenant->createDomain($tenant->{$tenantColumn});
|
||||
|
||||
expect($tenant->is(app($resolver)->resolve(getResolverArgument($resolver, $tenant, $tenantColumn))))->toBeTrue();
|
||||
|
|
@ -33,6 +34,7 @@ test('tenants can be resolved using cached resolvers', function (string $resolve
|
|||
|
||||
test('the underlying resolver is not touched when using the cached resolver', function (string $resolver, bool $default) {
|
||||
$tenant = Tenant::create([$tenantColumn = tenantModelColumn($default) => 'acme']);
|
||||
|
||||
$tenant->createDomain($tenant->{$tenantColumn});
|
||||
|
||||
DB::enableQueryLog();
|
||||
|
|
@ -62,6 +64,7 @@ test('the underlying resolver is not touched when using the cached resolver', fu
|
|||
|
||||
test('cache is invalidated when the tenant is updated', function (string $resolver, bool $default) {
|
||||
$tenant = Tenant::create([$tenantColumn = tenantModelColumn($default) => 'acme']);
|
||||
|
||||
$tenant->createDomain($tenant->{$tenantColumn});
|
||||
|
||||
DB::enableQueryLog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue