Fixes for tests.

This commit is contained in:
James Cole
2014-08-21 15:16:12 +02:00
parent fdba0addb6
commit a0b12ece54
16 changed files with 246 additions and 73 deletions

View File

@@ -32,23 +32,6 @@ class PiggybankRepetition extends Ardent
'currentamount' => 'required|numeric'
];
/**
* @return array
*/
public static function factory()
{
$start = new Carbon;
$start->startOfMonth();
$end = new Carbon;
$end->endOfMonth();
return [
'piggybank_id' => 'factory|Piggybank',
'startdate' => $start->format('Y-m-d'),
'targetdate' => $end->format('Y-m-d'),
'currentamount' => 200
];
}
public function pct() {
$total = $this->piggybank->targetamount;