Browse Source

Use payment project customer to fix failed test

pull/33/head
Nafies Luthfi 7 years ago
parent
commit
6a97501a45
  1. 2
      tests/Feature/Payments/ManagePaymentsTest.php

2
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));

Loading…
Cancel
Save