Updates for tests

This commit is contained in:
David Bomba 2025-10-15 14:23:02 +11:00
parent c83ba701f4
commit 2e80af2b49
2 changed files with 4 additions and 2 deletions

View File

@ -214,6 +214,10 @@ class UpdateCompanyRequest extends Request
}
}
if($this->company->getSetting('e_invoice_type') == 'VERIFACTU') {
$settings['e_invoice_type'] = 'VERIFACTU';
}
}
if(isset($settings['e_invoice_type']) && $settings['e_invoice_type'] == 'VERIFACTU' && $this->company->verifactuEnabled()) {

View File

@ -1350,12 +1350,10 @@ class VerifactuApiTest extends TestCase
])->putJson('/api/v1/companies/'.$this->company->hashed_id, $this->company->toArray())
->assertStatus(200);
$settings = $this->company->settings;
$settings->e_invoice_type = 'Facturae_3.2.2';
$this->company->settings = $settings;
$response = $this->withHeaders([
'X-API-SECRET' => config('ninja.api_secret'),
'X-API-TOKEN' => $this->token,