mirror of https://github.com/kcal-app/kcal.git
Only use default enabled meals in tests
This commit is contained in:
parent
242faeabd8
commit
c98ff15d55
|
|
@ -29,7 +29,7 @@ class JournalEntryFactory extends Factory
|
|||
'sodium' => $this->faker->randomFloat(1, 0, 500),
|
||||
'carbohydrates' => $this->faker->randomFloat(1, 0, 40),
|
||||
'protein' => $this->faker->randomFloat(1, 0, 20),
|
||||
'meal' => User::getDefaultMeals()->pluck('value')->random(),
|
||||
'meal' => User::getDefaultMeals()->where('enabled', true)->pluck('value')->random(),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue