mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:04:04 +00:00
Allow using only one time constraint for clearing the pending tenants
This commit is contained in:
parent
6766237669
commit
2faf9e8683
2 changed files with 20 additions and 3 deletions
|
|
@ -81,6 +81,13 @@ class PendingTenantsTest extends TestCase
|
|||
$this->assertCount(1, Tenant::onlyPending()->get());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function clear_pending_tenants_command_cannot_run_with_both_time_constraints()
|
||||
{
|
||||
$this->artisan('tenants:pending-clear --older-than-days=2 --older-than-hours=2')
|
||||
->assertFailed();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function clear_pending_tenants_command_all_option_overrides_config()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue