fix(tests): use valid UUID v7 for order references in integration tests
This commit is contained in:
parent
8a9210123f
commit
4165bfecb5
2 changed files with 3 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue