mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Fixes for tests.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user