1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 16:34:04 +00:00

Remove pending tenant clearing time constraints

This commit is contained in:
lukinovec 2022-07-27 13:01:09 +02:00
parent 677fdb23b9
commit 6766237669
3 changed files with 5 additions and 17 deletions

View file

@ -72,13 +72,11 @@ class PendingTenantsTest extends TestCase
Artisan::call(CreatePendingTenants::class);
config(['tenancy.pending.older_than_days' => 2]);
tenancy()->model()->query()->onlyPending()->first()->update([
'pending_since' => now()->subDays(5)->timestamp
]);
Artisan::call(ClearPendingTenants::class);
Artisan::call('tenants:pending-clear --older-than-days=2');
$this->assertCount(1, Tenant::onlyPending()->get());
}