Skip to content

Commit 884412c

Browse files
authored
fix: Time tests for arab locale (codeigniter4#9481)
1 parent 436f8cd commit 884412c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/system/I18n/TimeLegacyTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,11 +1091,11 @@ public function testHumanizeWithArLocale(): void
10911091
$this->resetServices();
10921092

10931093
$currentLocale = Locale::getDefault();
1094-
Locale::setDefault('ar');
1094+
Locale::setDefault('ar-SA');
10951095

10961096
$config = new App();
1097-
$config->supportedLocales = ['ar'];
1098-
$config->defaultLocale = 'ar';
1097+
$config->supportedLocales = ['ar-SA'];
1098+
$config->defaultLocale = 'ar-SA';
10991099
Factories::injectMock('config', 'App', $config);
11001100

11011101
TimeLegacy::setTestNow('2022-06-14 12:00', 'America/Chicago');

tests/system/I18n/TimeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,11 +1176,11 @@ public function testHumanizeWithArLocale(): void
11761176
$this->resetServices();
11771177

11781178
$currentLocale = Locale::getDefault();
1179-
Locale::setDefault('ar');
1179+
Locale::setDefault('ar-SA');
11801180

11811181
$config = new App();
1182-
$config->supportedLocales = ['ar'];
1183-
$config->defaultLocale = 'ar';
1182+
$config->supportedLocales = ['ar-SA'];
1183+
$config->defaultLocale = 'ar-SA';
11841184
Factories::injectMock('config', 'App', $config);
11851185

11861186
Time::setTestNow('2022-06-14 12:00', 'America/Chicago');

0 commit comments

Comments
 (0)