transfer factory

This commit is contained in:
denisdulici
2020-01-14 01:05:32 +03:00
parent f8453ad2d7
commit 3d72265cfd
4 changed files with 70 additions and 9 deletions

View File

@ -49,7 +49,7 @@ class TransfersTest extends FeatureTestCase
$transfer = $this->dispatch(new CreateTransfer($request));
$request['description'] = $this->faker->text(10);
$request['description'] = $this->faker->text(15);
$this->loginAs()
->patch(route('transfers.update', $transfer->id), $request)
@ -79,11 +79,11 @@ class TransfersTest extends FeatureTestCase
'company_id' => $this->company->id,
'from_account_id' => $from_account->id,
'to_account_id' => $to_account->id,
'amount' => $this->faker->randomFloat(2, 2, 1000),
'amount' => $this->faker->randomFloat(2, 1, 1000),
'transferred_at' => $this->faker->date(),
'description'=> $this->faker->text(5),
'description'=> $this->faker->text(20),
'payment_method' => setting('default.payment_method'),
'reference' => $this->faker->text(5),
'reference' => $this->faker->text(20),
];
}
}