events()); $sync = $events->first(fn ($e) => str_contains((string) $e->description, SyncSupplierProjectsJob::class) || str_contains((string) $e->command, 'SyncSupplierProjectsJob')); expect($sync)->not->toBeNull(); expect($sync->expression)->toBe('5 18 * * *'); expect($sync->timezone)->toBe('Europe/Moscow'); }); it('Daily RefreshSupplierSessionJob is scheduled at 17:45 MSK', function (): void { $schedule = app(Schedule::class); $events = collect($schedule->events()); $daily = $events->first(fn ($e) => (str_contains((string) $e->description, RefreshSupplierSessionJob::class) || str_contains((string) $e->command, 'RefreshSupplierSessionJob')) && $e->expression === '45 17 * * *'); expect($daily)->not->toBeNull(); expect($daily->timezone)->toBe('Europe/Moscow'); });