Fix budget limit tests

This commit is contained in:
James Cole
2021-03-13 20:01:42 +01:00
parent 25bc0b0b78
commit 07f62b0d5c
15 changed files with 86 additions and 64 deletions

View File

@@ -104,7 +104,7 @@ class ShowController extends Controller
*/
public function show(Request $request, Budget $budget, BudgetLimit $budgetLimit): JsonResponse
{
if ($budget->id !== $budgetLimit->budget_id) {
if ((int)$budget->id !== (int)$budgetLimit->budget_id) {
throw new FireflyException('20028: The budget limit does not belong to the budget.');
}
// continue!