Fix tests and fix coverage.

This commit is contained in:
James Cole
2015-06-06 15:36:12 +02:00
parent 681167bc1b
commit db020db34b
19 changed files with 381 additions and 286 deletions
@@ -212,6 +212,8 @@ class CategoryRepositoryTest extends TestCase
*/
public function testSpentInPeriodSumCorrected()
{
$user = FactoryMuffin::create('FireflyIII\User');
$this->be($user);
$category = FactoryMuffin::create('FireflyIII\Models\Category');
$sum = $this->object->spentInPeriodCorrected($category, new Carbon, new Carbon, false);
@@ -226,6 +228,8 @@ class CategoryRepositoryTest extends TestCase
*/
public function testSpentInPeriodSumCorrectedShared()
{
$user = FactoryMuffin::create('FireflyIII\User');
$this->be($user);
$category = FactoryMuffin::create('FireflyIII\Models\Category');
$sum = $this->object->spentInPeriodCorrected($category, new Carbon, new Carbon, true);