diff --git a/tests/Feature/RefundTest.php b/tests/Feature/RefundTest.php index 898ac90a82ab..2c8dc89feebf 100644 --- a/tests/Feature/RefundTest.php +++ b/tests/Feature/RefundTest.php @@ -155,6 +155,11 @@ class RefundTest extends TestCase $this->invoice = $this->invoice_calc->getInvoice(); $this->invoice->save(); + + $this->invoice->setRelation('client', $this->client); + $this->invoice->setRelation('company', $this->company); + + $this->invoice->service()->createInvitations()->markSent(); $data = [ 'amount' => 50,