Fixes for tests

This commit is contained in:
David Bomba 2020-08-12 16:48:09 +10:00
parent 2ee7c429bd
commit c2a32e48df

View File

@ -155,6 +155,11 @@ class RefundTest extends TestCase
$this->invoice = $this->invoice_calc->getInvoice(); $this->invoice = $this->invoice_calc->getInvoice();
$this->invoice->save(); $this->invoice->save();
$this->invoice->setRelation('client', $this->client);
$this->invoice->setRelation('company', $this->company);
$this->invoice->service()->createInvitations()->markSent();
$data = [ $data = [
'amount' => 50, 'amount' => 50,