From 7cd365974510eb6235babd6f0e2fdeb1a88a9f07 Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Sat, 21 Mar 2026 18:26:15 +0100 Subject: [PATCH] Fix orderNumber too long in stats tab test (VARCHAR 20 limit) Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/Controller/AccountControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Controller/AccountControllerTest.php b/tests/Controller/AccountControllerTest.php index c4582b1..87b55c4 100644 --- a/tests/Controller/AccountControllerTest.php +++ b/tests/Controller/AccountControllerTest.php @@ -1174,7 +1174,7 @@ class AccountControllerTest extends WebTestCase $order->setFirstName('Jean'); $order->setLastName('Dupont'); $order->setEmail('jean@test.fr'); - $order->setOrderNumber('2026-03-21-'.uniqid()); + $order->setOrderNumber('2026-03-21-'.random_int(1000, 9999)); $order->setTotalHT(1500); $order->setStatus(\App\Entity\BilletBuyer::STATUS_PAID); $order->setPaidAt(new \DateTimeImmutable());