From 6a97501a45e4d9fc1b442a1486ac5e526f793124 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Mon, 14 Jan 2019 09:06:07 +0800 Subject: [PATCH] Use payment project customer to fix failed test --- tests/Feature/Payments/ManagePaymentsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));