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

Rename pullPendingTenant to pullPending and don't pass bool to that method

This commit is contained in:
lukinovec 2022-10-21 10:30:20 +02:00
parent e172408576
commit 1899429723
2 changed files with 7 additions and 7 deletions

View file

@ -95,17 +95,17 @@ test('tenancy can check for pending tenants', function () {
});
test('tenancy can pull a pending tenant', function () {
expect(Tenant::pullPendingTenant())->toBeNull();
expect(Tenant::pullPending())->toBeNull();
Tenant::createPending();
expect(Tenant::pullPendingTenant(true))->toBeInstanceOf(Tenant::class);
expect(Tenant::pullPending())->toBeInstanceOf(Tenant::class);
});
test('tenancy can create if none are pending', function () {
expect(Tenant::all()->count())->toBe(0);
Tenant::pullPendingTenant(true);
Tenant::pullPending();
expect(Tenant::all()->count())->toBe(1);
});
@ -136,7 +136,7 @@ test('pending events are dispatched', function () {
Event::assertDispatched(CreatingPendingTenant::class);
Event::assertDispatched(PendingTenantCreated::class);
Tenant::pullPendingTenant();
Tenant::pullPending();
Event::assertDispatched(PullingPendingTenant::class);
Event::assertDispatched(PendingTenantPulled::class);