mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-09-03 20:52:58 -05:00
Fix tests and fix coverage.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user