fix(tests): use valid UUID v7 for order references in integration tests

This commit is contained in:
Jérémy Munsch 2026-10-03 11:30:44 +02:00
parent 8a9210123f
commit 4165bfecb5
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91
2 changed files with 3 additions and 2 deletions

View file

@ -69,7 +69,7 @@ it('updates an existing order in the repository', function () {
DB::table('orders')->insert([
'id' => '018e4567-e89b-72d3-a456-426614174002',
'shop_id' => $shopId,
'reference' => '1Bs1tsocVs3qFN46D7MYmq',
'reference' => Uuid::uuid7()->toString(),
'employee' => json_encode([
'matricule' => '1234567',
'firstname' => 'Jean',

View file

@ -9,6 +9,7 @@ use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Infrastructure\Adapters\Services\EloquentEmployeeStatisticsService;
use Ramsey\Uuid\Uuid;
beforeEach(function () {
if (! Schema::hasTable('orders')) {
@ -36,7 +37,7 @@ it('retrieves the weekly order total for a given employee', function () {
DB::table('orders')->insert([
'id' => '018e4567-e89b-72d3-a456-426614174000',
'shop_id' => 1,
'reference' => '1Bs1tsocVs3qFN46D7MYmq',
'reference' => Uuid::uuid7()->toString(),
'employee' => json_encode([
'matricule' => '1234567',
'firstname' => 'Jean',