From c2a32e48dff9bee06306bdcfcfc2a0cde260e87d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 12 Aug 2020 16:48:09 +1000 Subject: [PATCH] Fixes for tests --- tests/Feature/RefundTest.php | 5 +++++ 1 file changed, 5 insertions(+) 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,