mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 01:44:33 -04: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\Factory\InvoiceToRecurringInvoiceFactory;
|
||||||
use App\Helpers\Invoice\InvoiceSum;
|
use App\Helpers\Invoice\InvoiceSum;
|
||||||
use App\Models\Client;
|
use App\Models\Client;
|
||||||
|
use App\Models\ClientContact;
|
||||||
use App\Models\CompanyGateway;
|
use App\Models\CompanyGateway;
|
||||||
use App\Models\CompanyToken;
|
use App\Models\CompanyToken;
|
||||||
use App\Models\Credit;
|
use App\Models\Credit;
|
||||||
@ -161,15 +162,17 @@ trait MockAccountData
|
|||||||
'send_email' => true,
|
'send_email' => true,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->client->setRelation('contacts', $contact);
|
$contact2 = factory(\App\Models\ClientContact::class, 1)->create([
|
||||||
|
|
||||||
factory(\App\Models\ClientContact::class, 1)->create([
|
|
||||||
'user_id' => $this->user->id,
|
'user_id' => $this->user->id,
|
||||||
'client_id' => $this->client->id,
|
'client_id' => $this->client->id,
|
||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'send_email' => true
|
'send_email' => true
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// $rels = collect($contact, $contact2);
|
||||||
|
// $this->client->setRelation('contacts', $rels);
|
||||||
|
// $this->client->save();
|
||||||
|
|
||||||
$gs = new GroupSetting;
|
$gs = new GroupSetting;
|
||||||
$gs->name = 'Test';
|
$gs->name = 'Test';
|
||||||
$gs->company_id = $this->client->company_id;
|
$gs->company_id = $this->client->company_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user