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

all() -> get()

This commit is contained in:
Samuel Štancl 2022-10-28 00:54:19 +02:00 committed by GitHub
parent 73aaaf2b1f
commit 79da8574a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,11 +109,11 @@ test('pulling a tenant from the pending tenant pool removes it from the pool', f
}); });
test('a new tenant gets created while pulling a pending tenant if the pending pool is empty', function () { test('a new tenant gets created while pulling a pending tenant if the pending pool is empty', function () {
expect(Tenant::withPending()->all()->count())->toBe(0); expect(Tenant::withPending()->get()->count())->toBe(0); // All tenants
Tenant::pullPending(); Tenant::pullPending();
expect(Tenant::withPending()->all()->count())->toBe(1); expect(Tenant::withPending()->get()->count())->toBe(1); // All tenants
}); });
test('pending tenants are included in all queries based on the include_in_queries config', function () { test('pending tenants are included in all queries based on the include_in_queries config', function () {