mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
Full, but shitty coverage for models
This commit is contained in:
parent
119930399a
commit
45eb092ab6
@ -247,6 +247,21 @@ class ModelTest extends TestCase
|
||||
$repetition->delete();
|
||||
$piggy->nextReminderDate();
|
||||
|
||||
$event = f::create('PiggybankEvent');
|
||||
$event->piggybank()->associate($piggy);
|
||||
$event->save();
|
||||
$this->assertEquals($piggy->piggybankevents()->first()->id, $event->id);
|
||||
|
||||
$this->assertNull($piggy->repetitionForDate(new Carbon('2012-02-02')));
|
||||
|
||||
$transaction = f::create('Transaction');
|
||||
$transaction->piggybank()->associate($piggy);
|
||||
$transaction->save();
|
||||
$this->assertEquals($transaction->piggybank_id, $piggy->id);
|
||||
$this->assertEquals($piggy->transactions()->first()->id,$transaction->id);
|
||||
|
||||
$repetition->pct();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user