diff --git a/tests/system/I18n/TimeLegacyTest.php b/tests/system/I18n/TimeLegacyTest.php index c53b4ce3bda3..8fbd359fbfd5 100644 --- a/tests/system/I18n/TimeLegacyTest.php +++ b/tests/system/I18n/TimeLegacyTest.php @@ -1091,11 +1091,11 @@ public function testHumanizeWithArLocale(): void $this->resetServices(); $currentLocale = Locale::getDefault(); - Locale::setDefault('ar'); + Locale::setDefault('ar-SA'); $config = new App(); - $config->supportedLocales = ['ar']; - $config->defaultLocale = 'ar'; + $config->supportedLocales = ['ar-SA']; + $config->defaultLocale = 'ar-SA'; Factories::injectMock('config', 'App', $config); TimeLegacy::setTestNow('2022-06-14 12:00', 'America/Chicago'); diff --git a/tests/system/I18n/TimeTest.php b/tests/system/I18n/TimeTest.php index 4dd49d9a5388..af45abcbe4b8 100644 --- a/tests/system/I18n/TimeTest.php +++ b/tests/system/I18n/TimeTest.php @@ -1176,11 +1176,11 @@ public function testHumanizeWithArLocale(): void $this->resetServices(); $currentLocale = Locale::getDefault(); - Locale::setDefault('ar'); + Locale::setDefault('ar-SA'); $config = new App(); - $config->supportedLocales = ['ar']; - $config->defaultLocale = 'ar'; + $config->supportedLocales = ['ar-SA']; + $config->defaultLocale = 'ar-SA'; Factories::injectMock('config', 'App', $config); Time::setTestNow('2022-06-14 12:00', 'America/Chicago');