From eb090f7265a2111da2468eea29ef2b95c8d78ffd Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 4 May 2015 22:33:52 +0200 Subject: [PATCH] Better factory. --- tests/factories/all.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/factories/all.php b/tests/factories/all.php index 37c528abb0..133d8adf77 100644 --- a/tests/factories/all.php +++ b/tests/factories/all.php @@ -202,7 +202,10 @@ FactoryMuffin::define( 'FireflyIII\Models\Transaction', [ 'transaction_journal_id' => 'factory|FireflyIII\Models\TransactionJournal', - 'amount' => 'integer', + 'amount' => function () { + return rand(1, 100); + }, + 'description' => 'sentence', 'account_id' => 'factory|FireflyIII\Models\Account' ] );