test(schedule): remove stale horizon snapshot (#298)

- remove random and silly test
This commit is contained in:
Víctor Falcón 2026-04-16 15:14:16 +01:00 committed by GitHub
parent fde5405777
commit 63e472e8a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
<?php
use Illuminate\Console\Scheduling\Event;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
test('scheduled commands do not include horizon snapshot', function () {
Artisan::call('schedule:list');
$commands = collect(Schedule::events())
->map(fn (Event $event): string => $event->command)
->filter();
expect($commands)->each->not->toContain('horizon:snapshot');
expect($commands->implode("\n"))->not->toContain('horizon:snapshot');
});