From 699e2ef17302ebd7382dada09f6ff1a6565592bc Mon Sep 17 00:00:00 2001 From: Francesco Picone Date: Tue, 20 Oct 2026 14:00:59 +0200 Subject: [PATCH] ++ test: numeri dei territori come stringhe nel test della priorita' Co-Authored-By: Claude Opus 5.5 --- tests/Feature/GruppiServizioTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Feature/GruppiServizioTest.php b/tests/Feature/GruppiServizioTest.php index b19c971..a65b99c 100644 --- a/tests/Feature/GruppiServizioTest.php +++ b/tests/Feature/GruppiServizioTest.php @@ -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),