mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
6ab6b71944
commit
69cc7a5338
@ -50,11 +50,8 @@ class InvitationTest extends TestCase
|
||||
|
||||
$this->assertEquals(1, count($invites));
|
||||
|
||||
$this->invoice->invitations()->each(function ($invite){
|
||||
|
||||
if(!$invite->contact->is_primary)
|
||||
$invite->forceDelete();
|
||||
});
|
||||
/** @phpstan-ignore-next-line **/
|
||||
$this->invoice->invitations = $invites;
|
||||
|
||||
$this->invoice->line_items = [];
|
||||
|
||||
@ -84,9 +81,12 @@ class InvitationTest extends TestCase
|
||||
$new_invite->key = $this->createDbHash(config('database.default'));
|
||||
|
||||
$invitations = $this->invoice->invitations()->get();
|
||||
|
||||
$invitations->push($new_invite);
|
||||
|
||||
/** @phpstan-ignore-next-line **/
|
||||
$this->invoice->invitations = $invitations->toArray();
|
||||
|
||||
$this->invoice->line_items = [];
|
||||
|
||||
$response = $this->withHeaders([
|
||||
|
Loading…
x
Reference in New Issue
Block a user