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
use Carbon\Carbon;
use FireflyIII\Models\Account;
use FireflyIII\Models\AccountType;
use FireflyIII\Models\Preference;
@ -108,6 +109,8 @@ class PiggyBankControllerTest extends TestCase
public function testEdit()
{
$piggyBank = FactoryMuffin::create('FireflyIII\Models\PiggyBank');
$piggyBank->targetdate = Carbon::now()->addYear();
$piggyBank->save();
$this->be($piggyBank->account->user);
$account = FactoryMuffin::create('FireflyIII\Models\Account');
$collection = new Collection([$account]);