Fixed tests

This commit is contained in:
James Cole 2015-05-09 09:15:27 +02:00
parent ca39438ad4
commit 484d49aae1

View File

@ -178,10 +178,11 @@ class BudgetRepositoryTest extends TestCase
*/
public function testGetFirstBudgetLimitDateNull()
{
/** @var BudgetLimit $budget */
/** @var Budget $budget */
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
$date = $this->object->getFirstBudgetLimitDate($budget);
$this->assertNull($date);
$ownDate = Carbon::now()->startOfYear();
$this->assertEquals($date->format('Y-m-d'), $ownDate->format('Y-m-d'));
}
/**