From c98ff15d559dbcf077f6936841d1e20cf122cfd3 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 30 May 2021 09:32:18 -0700 Subject: [PATCH] Only use default enabled meals in tests --- database/Factories/JournalEntryFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/Factories/JournalEntryFactory.php b/database/Factories/JournalEntryFactory.php index 178bc08..f2a34b9 100644 --- a/database/Factories/JournalEntryFactory.php +++ b/database/Factories/JournalEntryFactory.php @@ -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(), ]; }