Add unit tests for various modules: attachments grouping, department weather caching behaviors, economic module order sanitization, enriched order batching, and user cashier name lookups. Update related route logic for enhanced data fetching and caching integrations.

This commit is contained in:
Jeppe Bundgaard
2026-03-24 14:59:16 +01:00
parent 4a5dd3a83f
commit 6fdc8d466e
19 changed files with 1798 additions and 84 deletions
@@ -128,6 +128,9 @@ it('wires departments weather route through the forecast fallback path', functio
$content = (string)file_get_contents($routeFile);
expect($content)->toContain('fetchDepartmentForecastOrFallback');
expect($content)->toContain('$this->resolveForecastDaysForTimelineRange');
expect($content)->toContain('$this->buildDepartmentWeatherTimeline');
expect($content)->not->toContain('static function () use ($coordinates');
expect($content)->toContain('DEPARTMENTS_WEATHER_FALLBACK');
expect($content)->not->toContain('Selected department(s) do not have GPS coordinates configured');
});