mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
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>
This commit is contained in:
1 parent
348b15a952
commit
d90ff52052
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user