mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for test
This commit is contained in:
parent
f87589715f
commit
a43b879f0d
@ -25,6 +25,7 @@ use App\Factory\InvoiceItemFactory;
|
||||
use App\Factory\InvoiceToRecurringInvoiceFactory;
|
||||
use App\Helpers\Invoice\InvoiceSum;
|
||||
use App\Models\Client;
|
||||
use App\Models\ClientContact;
|
||||
use App\Models\CompanyGateway;
|
||||
use App\Models\CompanyToken;
|
||||
use App\Models\Credit;
|
||||
@ -161,15 +162,17 @@ trait MockAccountData
|
||||
'send_email' => true,
|
||||
]);
|
||||
|
||||
$this->client->setRelation('contacts', $contact);
|
||||
|
||||
factory(\App\Models\ClientContact::class, 1)->create([
|
||||
$contact2 = factory(\App\Models\ClientContact::class, 1)->create([
|
||||
'user_id' => $this->user->id,
|
||||
'client_id' => $this->client->id,
|
||||
'company_id' => $this->company->id,
|
||||
'send_email' => true
|
||||
]);
|
||||
|
||||
|
||||
// $rels = collect($contact, $contact2);
|
||||
// $this->client->setRelation('contacts', $rels);
|
||||
// $this->client->save();
|
||||
|
||||
$gs = new GroupSetting;
|
||||
$gs->name = 'Test';
|
||||
$gs->company_id = $this->client->company_id;
|
||||
|
Loading…
Reference in New Issue
Block a user