Expand tests

This commit is contained in:
James Cole
2017-03-04 11:20:57 +01:00
parent 9d22bbee1c
commit ae05d4d51d
5 changed files with 275 additions and 16 deletions

View File

@@ -32,3 +32,13 @@ $factory->define(
];
}
);
$factory->define(
FireflyIII\Models\Transaction::class, function (Faker\Generator $faker) {
return [
'transaction_amount' => strval($faker->randomFloat(2, -100, 100)),
'opposing_account_id' => $faker->numberBetween(1, 10),
'opposing_account_name' => $faker->words(3),
];
}
);