diff --git a/tests/Feature/Payments/ManagePaymentsTest.php b/tests/Feature/Payments/ManagePaymentsTest.php index 8397fd1..4ea77f5 100644 --- a/tests/Feature/Payments/ManagePaymentsTest.php +++ b/tests/Feature/Payments/ManagePaymentsTest.php @@ -166,7 +166,7 @@ class ManagePaymentsTest extends TestCase 'partner_type' => Vendor::class, 'partner_id' => $vendor->id, ]); - $customer = factory(Customer::class)->create(); + $customer = $payment->project->customer; $this->visit(route('payments.edit', $payment->id)); $this->seePageIs(route('payments.edit', $payment->id));