diff --git a/tests/Feature/RefundTest.php b/tests/Feature/RefundTest.php index 2c8dc89feebf..6ebd5be7464e 100644 --- a/tests/Feature/RefundTest.php +++ b/tests/Feature/RefundTest.php @@ -159,8 +159,10 @@ class RefundTest extends TestCase $this->invoice->setRelation('client', $this->client); $this->invoice->setRelation('company', $this->company); - $this->invoice->service()->createInvitations()->markSent(); + $this->invoice->service()->createInvitations()->markSent()->save(); + $this->assertNotNull($this->invoice->invitations); + $data = [ 'amount' => 50, 'client_id' => $client->hashed_id,