test(schedule): remove stale horizon snapshot (#298)
- remove random and silly test
This commit is contained in:
parent
fde5405777
commit
63e472e8a4
|
|
@ -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');
|
||||
});
|
||||
Loading…
Reference in New Issue