mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Another attempt at fixing some tests. I'm probably searching in the wrong direction with this.
This commit is contained in:
@@ -50,8 +50,8 @@ FactoryMuffin::define(
|
|||||||
'FireflyIII\Models\AccountType', [
|
'FireflyIII\Models\AccountType', [
|
||||||
'type' => function () {
|
'type' => function () {
|
||||||
$types = ['Expense account', 'Revenue account', 'Asset account'];
|
$types = ['Expense account', 'Revenue account', 'Asset account'];
|
||||||
|
$count = DB::table('account_types')->count();
|
||||||
return $types[rand(0, 2)];
|
return $types[$count];
|
||||||
},
|
},
|
||||||
'editable' => 1,
|
'editable' => 1,
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user