Fixes for tests

This commit is contained in:
David Bomba 2022-02-01 20:19:04 +11:00
parent bb05c9898f
commit 43d9773fae
2 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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();