Another attempt at fixing some tests. I'm probably searching in the wrong direction with this.

This commit is contained in:
James Cole 2015-04-04 22:27:51 +02:00
parent b38ed06f6e
commit 8520a5002f

View File

@ -50,8 +50,8 @@ FactoryMuffin::define(
'FireflyIII\Models\AccountType', [
'type' => function () {
$types = ['Expense account', 'Revenue account', 'Asset account'];
return $types[rand(0, 2)];
$count = DB::table('account_types')->count();
return $types[$count];
},
'editable' => 1,
]