Only use default enabled meals in tests

This commit is contained in:
Christopher C. Wells 2021-05-30 09:32:18 -07:00
parent 242faeabd8
commit c98ff15d55
1 changed files with 1 additions and 1 deletions

View File

@ -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(),
];
}