Update .env.example vars

This commit is contained in:
David Bomba 2024-09-16 18:52:44 +10:00
parent 15ed82e5b2
commit ab9b96d7f2
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -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 = [