fix tests

This commit is contained in:
harshjagad20
2022-01-10 19:02:49 +05:30
parent 54f76f7cbe
commit 9eae813c24
11 changed files with 67 additions and 45 deletions

View File

@ -31,7 +31,9 @@ test('get customer payments', function () {
test('get customer payment', function () {
$customer = Auth::guard('customer')->user();
$payment = Payment::factory()->create();
$payment = Payment::factory()->create([
'customer_id' => $customer->id
]);
getJson("/api/v1/{$customer->company->slug}/customer/payments/{$payment->id}")->assertOk();
});