Updates for tests
This commit is contained in:
parent
c83ba701f4
commit
2e80af2b49
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue