Expand test coverage.

This commit is contained in:
James Cole
2018-01-24 11:09:21 +01:00
parent 602b35d589
commit 9a2c6c2967
4 changed files with 48 additions and 9 deletions

View File

@@ -84,10 +84,10 @@ class AccountController extends Controller
$step = '1W';
}
if ($months > 24) {
$step = '1M';
$step = '1M'; // @codeCoverageIgnore
}
if ($months > 100) {
$step = '1Y';
$step = '1Y'; // @codeCoverageIgnore
}
$chartData = [];
$current = clone $start;
@@ -106,8 +106,8 @@ class AccountController extends Controller
}
break;
case '1W':
case '1M':
case '1Y':
case '1M': // @codeCoverageIgnore
case '1Y': // @codeCoverageIgnore
while ($end >= $current) {
$balance = floatval(Steam::balance($account, $current));
$label = app('navigation')->periodShow($current, $step);