++ test: numeri dei territori come stringhe nel test della priorita'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Francesco Picone
2026-10-20 14:00:59 +02:00
parent 0ce5bd8c89
commit 699e2ef173

View File

@@ -647,6 +647,7 @@ class GruppiServizioTest extends TestCase
$altra = \App\Models\Zona::create(['nome' => 'Zisa', 'attivo' => true]);
$t = [];
foreach (['40' => 200, '41' => 50, '42' => 0, '43' => 0] as $numero => $giorni) {
$numero = (string) $numero; // le chiavi numeriche diventano interi
$t[$numero] = $this->territorio($numero);
$t[$numero]->forceFill([
'created_at' => now()->subDays($giorni),