From d90ff52052266214f01cb09e4da57482e66056ca Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Mon, 6 Jul 2026 17:25:16 +0100 Subject: [PATCH] Fix for 1 code quality finding in i18n tests (#3903) Apply suggested fix to tests/Unit/FOSSBilling/i18nTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests/Unit/FOSSBilling/i18nTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Unit/FOSSBilling/i18nTest.php b/tests/Unit/FOSSBilling/i18nTest.php index 466cecaaa..c4f3761c1 100644 --- a/tests/Unit/FOSSBilling/i18nTest.php +++ b/tests/Unit/FOSSBilling/i18nTest.php @@ -88,6 +88,7 @@ test('getActiveTimezone prefers explicit client/admin arguments over a valid fb_ $_COOKIE['fb_timezone'] = 'Europe/Berlin'; expect(i18n::getActiveTimezone('America/New_York', 'Asia/Tokyo'))->toBe('America/New_York'); + expect(i18n::getActiveTimezone(null, 'Asia/Tokyo'))->toBe('Asia/Tokyo'); }); test('getActiveTimezone ignores an invalid fb_timezone cookie', function (): void {