firefly-iii/app/tests/factories/Piggybank.php

32 lines
766 B
PHP
Raw Normal View History

2014-08-21 08:16:12 -05:00
<?php
use Carbon\Carbon;
use League\FactoryMuffin\Facade;
Facade::define(
'Piggybank',
[
2014-08-28 00:53:54 -05:00
'account_id' => 'factory|Account',
'name' => 'string',
'targetamount' => 'integer',
'startdate' => function () {
$start = new Carbon;
$start->startOfMonth();
return $start;
},
'targetdate' => function () {
$end = new Carbon;
$end->endOfMonth();
return $end;
},
'repeats' => 0,
'rep_length' => null,
'rep_times' => 0,
'rep_every' => 0,
'reminder' => null,
2014-08-21 08:16:12 -05:00
'reminder_skip' => 0,
2014-08-28 00:53:54 -05:00
'order' => 1,
2014-08-21 08:16:12 -05:00
]
);