Increased test coverage. Also updated read me.

This commit is contained in:
James Cole
2014-12-21 17:59:47 +01:00
parent e62e0345df
commit 48cb528ae4
4 changed files with 86 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
<?php
namespace FireflyIII\Shared\Toolkit;
use Carbon\Carbon;
use FireflyIII\Exception\FireflyException;
/**
@@ -23,7 +24,7 @@ class Navigation
$filter = new Filter;
$range = $filter->setSessionRangeValue();
$start = \Session::get('start');
$start = \Session::get('start', Carbon::now()->startOfMonth());
/*
* Add some period to $start.
@@ -50,7 +51,7 @@ class Navigation
$filter = new Filter;
$range = $filter->setSessionRangeValue();
$start = \Session::get('start');
$start = \Session::get('start', Carbon::now()->startOfMonth());
/*
* Substract some period to $start.