mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 20:25:28 +00:00
Refactored API code surrounding accounts to make transformers mockable.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user