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', [ '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,
] ]