mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Add code coverage.
This commit is contained in:
@@ -98,7 +98,7 @@ class BudgetController extends Controller
|
|||||||
$step = '1M';
|
$step = '1M';
|
||||||
}
|
}
|
||||||
if ($months > 60) {
|
if ($months > 60) {
|
||||||
$step = '1Y';
|
$step = '1Y'; // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
$budgetCollection = new Collection([$budget]);
|
$budgetCollection = new Collection([$budget]);
|
||||||
$chartData = [];
|
$chartData = [];
|
||||||
@@ -108,7 +108,7 @@ class BudgetController extends Controller
|
|||||||
while ($end >= $current) {
|
while ($end >= $current) {
|
||||||
$currentEnd = app('navigation')->endOfPeriod($current, $step);
|
$currentEnd = app('navigation')->endOfPeriod($current, $step);
|
||||||
if ($step === '1Y') {
|
if ($step === '1Y') {
|
||||||
$currentEnd->subDay();
|
$currentEnd->subDay(); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
$spent = $this->repository->spentInPeriod($budgetCollection, new Collection, $current, $currentEnd);
|
$spent = $this->repository->spentInPeriod($budgetCollection, new Collection, $current, $currentEnd);
|
||||||
$label = app('navigation')->periodShow($current, $step);
|
$label = app('navigation')->periodShow($current, $step);
|
||||||
|
Reference in New Issue
Block a user