mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:14:30 -04:00
Update .env.example vars
This commit is contained in:
parent
15ed82e5b2
commit
ab9b96d7f2
@ -371,7 +371,7 @@ class Company extends BaseModel
|
||||
'tax_data',
|
||||
'e_invoice_certificate_passphrase',
|
||||
'expense_mailbox_active',
|
||||
'expense_mailbox', // TODO: @turbo124 custom validation: self-hosted => free change, hosted => not changeable, only changeable with env-mask
|
||||
'expense_mailbox',
|
||||
'inbound_mailbox_allow_company_users',
|
||||
'inbound_mailbox_allow_vendors',
|
||||
'inbound_mailbox_allow_clients',
|
||||
|
@ -53,9 +53,11 @@ class CompanyTest extends TestCase
|
||||
|
||||
public function testCompanyExpenseMailbox()
|
||||
{
|
||||
$safeEmail = $this->faker->safeEmail();
|
||||
|
||||
// Test valid email address
|
||||
$company_update = [
|
||||
'expense_mailbox' => 'valid@example.com',
|
||||
'expense_mailbox' => $safeEmail,
|
||||
];
|
||||
|
||||
$response = $this->withHeaders([
|
||||
@ -64,7 +66,8 @@ class CompanyTest extends TestCase
|
||||
])->putJson('/api/v1/companies/'.$this->encodePrimaryKey($this->company->id), $company_update);
|
||||
|
||||
$response->assertStatus(200);
|
||||
$this->assertEquals('valid@example.com', $response->json('data.expense_mailbox'));
|
||||
|
||||
$this->assertEquals($safeEmail, $response->json('data.expense_mailbox'));
|
||||
|
||||
// Test invalid email address
|
||||
$company_update = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user