diff --git a/routes/console.php b/routes/console.php index 87614397..317f621d 100644 --- a/routes/console.php +++ b/routes/console.php @@ -3,7 +3,6 @@ use Illuminate\Support\Facades\Schedule; Schedule::command('demo:reset')->twiceDaily(); -Schedule::command('horizon:snapshot')->everyFiveMinutes(); Schedule::command('budgets:generate-periods')->daily(); Schedule::command('banking:sync')->everySixHours(); Schedule::command('banks:check-logos')->weekly(); diff --git a/tests/Feature/ScheduleCommandsTest.php b/tests/Feature/ScheduleCommandsTest.php new file mode 100644 index 00000000..71ac45b5 --- /dev/null +++ b/tests/Feature/ScheduleCommandsTest.php @@ -0,0 +1,16 @@ +map(fn (Event $event): string => $event->command) + ->filter(); + + expect($commands)->each->not->toContain('horizon:snapshot'); + expect($commands->implode("\n"))->not->toContain('horizon:snapshot'); +});