solve unit tests

This commit is contained in:
harshjagad20
2021-12-01 13:25:24 +05:30
parent f57fa41640
commit 88bfb38b56
33 changed files with 205 additions and 219 deletions

View File

@ -14,12 +14,15 @@ test('payment request validation rules', function () {
'customer_id' => [
'required',
],
'exchange_rate' => [
'nullable'
],
'amount' => [
'required',
],
'payment_number' => [
'required',
Rule::unique('payments')->where('company_id', null)
Rule::unique('payments')->where('company_id', $request->header('company'))
],
'invoice_id' => [
'nullable',