mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
Update a test.
This commit is contained in:
parent
fb047bd5f4
commit
883d3d86e3
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
use Carbon\Carbon;
|
||||||
use FireflyIII\Models\Account;
|
use FireflyIII\Models\Account;
|
||||||
use FireflyIII\Models\AccountType;
|
use FireflyIII\Models\AccountType;
|
||||||
use FireflyIII\Models\Preference;
|
use FireflyIII\Models\Preference;
|
||||||
@ -108,6 +109,8 @@ class PiggyBankControllerTest extends TestCase
|
|||||||
public function testEdit()
|
public function testEdit()
|
||||||
{
|
{
|
||||||
$piggyBank = FactoryMuffin::create('FireflyIII\Models\PiggyBank');
|
$piggyBank = FactoryMuffin::create('FireflyIII\Models\PiggyBank');
|
||||||
|
$piggyBank->targetdate = Carbon::now()->addYear();
|
||||||
|
$piggyBank->save();
|
||||||
$this->be($piggyBank->account->user);
|
$this->be($piggyBank->account->user);
|
||||||
$account = FactoryMuffin::create('FireflyIII\Models\Account');
|
$account = FactoryMuffin::create('FireflyIII\Models\Account');
|
||||||
$collection = new Collection([$account]);
|
$collection = new Collection([$account]);
|
||||||
|
Loading…
Reference in New Issue
Block a user