Refactored API code surrounding accounts to make transformers mockable.

This commit is contained in:
James Cole
2018-12-15 07:59:49 +01:00
parent c54541b839
commit 1284f9cecc
9 changed files with 239 additions and 100 deletions

View File

@@ -217,21 +217,6 @@ $factory->define(
}
);
$factory->define(
FireflyIII\Models\Account::class,
function (Faker\Generator $faker) {
return [
'id' => $faker->unique()->numberBetween(1000, 10000),
'user_id' => 1,
'created_at' => new Carbon,
'updated_at' => new Carbon,
'name' => $faker->words(3, true),
'account_type_id' => 1,
'active' => true,
];
}
);
$factory->define(
FireflyIII\Models\Transaction::class,
function (Faker\Generator $faker) {