added more db asserts
This commit is contained in:
@ -17,10 +17,10 @@ $factory->define(Transaction::class, function (Faker $faker) use ($company) {
|
||||
'company_id' => $company->id,
|
||||
'type' => $type,
|
||||
'account_id' => setting('default.account'),
|
||||
'paid_at' => $faker->dateTimeBetween(now()->startOfYear(), now()->endOfYear())->format('Y-m-d'),
|
||||
'paid_at' => $faker->dateTimeBetween(now()->startOfYear(), now()->endOfYear())->format('Y-m-d H:i:s'),
|
||||
'amount' => $faker->randomFloat(2, 1, 1000),
|
||||
'currency_code' => setting('default.currency'),
|
||||
'currency_rate' => '1',
|
||||
'currency_rate' => '1.0',
|
||||
'description' => $faker->text(5),
|
||||
'category_id' => $company->categories()->type($type)->get()->random(1)->pluck('id')->first(),
|
||||
'reference' => $faker->text(5),
|
||||
|
Reference in New Issue
Block a user