Improve test coverage.

This commit is contained in:
James Cole 2018-12-18 07:08:23 +01:00
parent a0b475d8ef
commit f71359e73d
2 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ class CategoryController extends Controller
$start = app('navigation')->startOfPeriod($date, $range);
$end = session()->get('end');
if ($end < $start) {
$end = app('navigation')->endOfPeriod($date, $range);
[$end, $start] = [$start, $end];
}
$data = $this->makePeriodChart($category, $start, $end);

View File

@ -186,7 +186,7 @@ class SingleController extends Controller
* Show a special JSONified view of a transaction, for easier debug purposes.
*
* @param TransactionJournal $journal
*
* @codeCoverageIgnore
* @return JsonResponse
*/
public function debugShow(TransactionJournal $journal): JsonResponse