From 5fd7ea2b969f8081a9d5f2ed6c03e4718f931cb5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 29 Jan 2018 19:08:49 +0100 Subject: [PATCH] Add code coverage. --- app/Http/Controllers/Chart/BudgetController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.php index 0e2c1fdb1f..cbff5e05e9 100644 --- a/app/Http/Controllers/Chart/BudgetController.php +++ b/app/Http/Controllers/Chart/BudgetController.php @@ -98,7 +98,7 @@ class BudgetController extends Controller $step = '1M'; } if ($months > 60) { - $step = '1Y'; + $step = '1Y'; // @codeCoverageIgnore } $budgetCollection = new Collection([$budget]); $chartData = []; @@ -108,7 +108,7 @@ class BudgetController extends Controller while ($end >= $current) { $currentEnd = app('navigation')->endOfPeriod($current, $step); if ($step === '1Y') { - $currentEnd->subDay(); + $currentEnd->subDay(); // @codeCoverageIgnore } $spent = $this->repository->spentInPeriod($budgetCollection, new Collection, $current, $currentEnd); $label = app('navigation')->periodShow($current, $step);