feat: translation codes
CI / 🧪 Tests Laravel (push) Successful in 2m34s
CI / 🐳 Build & Push Images (push) Successful in 2m26s

This commit is contained in:
2026-08-14 12:46:29 +02:00
parent 69372a49ed
commit 8b60283eeb
28 changed files with 59 additions and 62 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ it('creates one review per user for a meal post', function () {
'rating' => 4,
])
->assertConflict()
->assertJsonPath('message', __('api.post_reviews.already_exists'));
->assertJsonPath('code', 'MEAL_REVIEW_ALREADY_EXISTS');
expect(PostReviews::query()->count())->toBe(1);
});