From 3ff77d0edebff0e2a905d7e71463058726a31303 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 11 Mar 2022 07:45:23 +1100 Subject: [PATCH] Fixes for tests --- app/DataMapper/CompanySettings.php | 2 +- tests/MockAccountData.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/DataMapper/CompanySettings.php b/app/DataMapper/CompanySettings.php index 843c128717b2..9c2ffd076a37 100644 --- a/app/DataMapper/CompanySettings.php +++ b/app/DataMapper/CompanySettings.php @@ -66,7 +66,7 @@ class CompanySettings extends BaseSettings public $auto_convert_quote = true; //@implemented public $auto_email_invoice = true; //@only used for Recurring Invoices, if set to false, we never send? - public $entity_send_time = 12; + public $entity_send_time = 6; public $inclusive_taxes = false; //@implemented public $quote_footer = ''; //@implmented diff --git a/tests/MockAccountData.php b/tests/MockAccountData.php index 4060fd8bcb69..d018eb38dc36 100644 --- a/tests/MockAccountData.php +++ b/tests/MockAccountData.php @@ -211,7 +211,8 @@ trait MockAccountData $settings->id_number = 'id number'; $settings->use_credits_payment = 'always'; $settings->timezone_id = '1'; - + $settings->entity_send_time = 0; + $this->company->settings = $settings; $this->company->save();