mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tests
This commit is contained in:
parent
bb05c9898f
commit
43d9773fae
@ -50,6 +50,9 @@ class CompanyTest extends TestCase
|
||||
{
|
||||
$this->withoutMiddleware(PasswordProtection::class);
|
||||
|
||||
$cc = Company::first();
|
||||
$cc->delete();
|
||||
|
||||
$response = $this->withHeaders([
|
||||
'X-API-SECRET' => config('ninja.api_secret'),
|
||||
'X-API-TOKEN' => $this->token,
|
||||
|
@ -186,8 +186,8 @@ trait MockAccountData
|
||||
$this->account->save();
|
||||
|
||||
$this->company = Company::factory()->create([
|
||||
'account_id' => $this->account->id,
|
||||
]);
|
||||
'account_id' => $this->account->id,
|
||||
]);
|
||||
|
||||
$this->company->client_registration_fields = ClientRegistrationFields::generate();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user