diff --git a/tests/Feature/Payments/CreditPaymentTest.php b/tests/Feature/Payments/CreditPaymentTest.php index edc2b7b87b0b..6f87ce2069ea 100644 --- a/tests/Feature/Payments/CreditPaymentTest.php +++ b/tests/Feature/Payments/CreditPaymentTest.php @@ -79,7 +79,7 @@ class CreditPaymentTest extends TestCase $invoice = $invoice_calc->getInvoice(); $invoice->setRelation('client', $this->client); $invoice->setRelation('company', $this->company); - $invoice->service()->markSent()->save(); + $invoice->service()->markSent()->createInvitations()->save(); $data = [