diff --git a/tests/Framework/ImapTest.php b/tests/Framework/ImapTest.php index cd539302f2..31829c9018 100644 --- a/tests/Framework/ImapTest.php +++ b/tests/Framework/ImapTest.php @@ -47,6 +47,11 @@ public function test_convert_criteria() */ public function test_sort_folder_list() { + // The sorting requires this locale. + if (setlocale(\LC_ALL, 'en_US.UTF-8', 'en_US.utf8', 'en_US') === false) { + throw new \Error('This test requires `en_US.UTF-8` or `en_US` to be settable as locale, but those appear to not be present in your environment!'); + } + $_SESSION['imap_delimiter'] = '.'; $_SESSION['imap_namespace'] = [ 'personal' => null,