fix(test): add deterministic order values in SongPdfTest

Specify explicit order values for SongGroup factories to avoid unique
constraint violations on the composite (song_id, order) key when
faker generates duplicate random values.
This commit is contained in:
Thorsten Bus 2026-03-02 23:02:58 +01:00
parent af0c72ebcc
commit 149389a382

View file

@ -264,12 +264,14 @@
'song_id' => $song->id,
'name' => 'Strophe 1',
'color' => '#3b82f6',
'order' => 1,
]);
$chorus = SongGroup::factory()->create([
'song_id' => $song->id,
'name' => 'Refrain',
'color' => '#ef4444',
'order' => 2,
]);
SongSlide::factory()->create([
@ -332,6 +334,7 @@
$group = SongGroup::factory()->create([
'song_id' => $song->id,
'name' => 'Verse',
'order' => 1,
]);
SongSlide::factory()->create([