feat: fix test
This commit is contained in:
@@ -18,6 +18,7 @@ it('stores and returns the selected meal post visibility', function () {
|
||||
'title' => 'Bowl saumon avocat',
|
||||
'eaten_at' => '2026-05-16T12:00:00.000Z',
|
||||
'visibility' => MealPostVisibility::Followers->value,
|
||||
'type' => \App\Enums\MealPostType::BREAKFAST->value,
|
||||
]);
|
||||
|
||||
$response
|
||||
@@ -40,6 +41,7 @@ it('defaults meal post visibility to private', function () {
|
||||
'image_url' => 'https://example.com/meal.jpg',
|
||||
'title' => 'Bowl saumon avocat',
|
||||
'eaten_at' => '2026-05-16T12:00:00.000Z',
|
||||
'type' => \App\Enums\MealPostType::BREAKFAST->value,
|
||||
]);
|
||||
|
||||
$response
|
||||
@@ -55,6 +57,7 @@ it('validates meal post visibility', function () {
|
||||
'title' => 'Bowl saumon avocat',
|
||||
'eaten_at' => '2026-05-16T12:00:00.000Z',
|
||||
'visibility' => 'friends',
|
||||
'type' => \App\Enums\MealPostType::BREAKFAST->value,
|
||||
]);
|
||||
|
||||
$response
|
||||
|
||||
Reference in New Issue
Block a user