add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
@@ -13,13 +13,13 @@ class CleanupSchedulerServiceTest extends TestCase
{
Cache::forget('last_cleanup_run');
$service = new CleanupSchedulerService;
$service = new CleanupSchedulerService();
$this->assertTrue($service->shouldRun('last_cleanup_run', 2));
}
public function test_mark_run_sets_cache(): void
{
$service = new CleanupSchedulerService;
$service = new CleanupSchedulerService();
$service->markRun('last_cleanup_run');
$this->assertNotNull(Cache::get('last_cleanup_run'));
@@ -29,7 +29,7 @@ class CleanupSchedulerServiceTest extends TestCase
{
Artisan::shouldReceive('call')->once()->with('users:delete-unverified');
$service = new CleanupSchedulerService;
$service = new CleanupSchedulerService();
$service->runUnverifiedCleanup();
}
}