mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed tests
This commit is contained in:
parent
ca39438ad4
commit
484d49aae1
@ -178,10 +178,11 @@ class BudgetRepositoryTest extends TestCase
|
||||
*/
|
||||
public function testGetFirstBudgetLimitDateNull()
|
||||
{
|
||||
/** @var BudgetLimit $budget */
|
||||
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
|
||||
$date = $this->object->getFirstBudgetLimitDate($budget);
|
||||
$this->assertNull($date);
|
||||
/** @var Budget $budget */
|
||||
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
|
||||
$date = $this->object->getFirstBudgetLimitDate($budget);
|
||||
$ownDate = Carbon::now()->startOfYear();
|
||||
$this->assertEquals($date->format('Y-m-d'), $ownDate->format('Y-m-d'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user