From dec2904ddea42ff8279822d7ee19fd49531a8f1f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 1 Jan 2024 17:58:59 +1100 Subject: [PATCH] Adjustments for tests --- tests/Unit/GeneratesConvertedQuoteCounterTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Unit/GeneratesConvertedQuoteCounterTest.php b/tests/Unit/GeneratesConvertedQuoteCounterTest.php index 488fa5aaad19..7a6f22677976 100644 --- a/tests/Unit/GeneratesConvertedQuoteCounterTest.php +++ b/tests/Unit/GeneratesConvertedQuoteCounterTest.php @@ -35,6 +35,11 @@ class GeneratesConvertedQuoteCounterTest extends TestCase use DatabaseTransactions; use MakesHash; + protected $account; + protected $faker; + protected $client; + protected $company; + protected function setUp() :void { parent::setUp(); @@ -90,6 +95,7 @@ class GeneratesConvertedQuoteCounterTest extends TestCase $settings->invoice_number_pattern = '{$year}-I{$counter}'; $settings->quote_number_pattern = '{$year}-Q{$counter}'; $settings->shared_invoice_quote_counter = 1; + $settings->timezone_id = '31'; $this->company->settings = $settings; $this->company->save(); @@ -117,6 +123,8 @@ class GeneratesConvertedQuoteCounterTest extends TestCase $settings->invoice_number_pattern = 'I{$counter}'; $settings->quote_number_pattern = 'Q{$counter}'; $settings->shared_invoice_quote_counter = 1; + $settings->timezone_id = '31'; + $this->company->settings = $settings; $this->company->save();