Update a test.

This commit is contained in:
James Cole 2015-05-01 14:32:26 +02:00
parent fb047bd5f4
commit 883d3d86e3

View File

@ -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]);