summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/AccessTest.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-05 14:03:08 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-05 14:03:08 +0100
commit47a10bd25aadae5774fb4c011810c9d4edc53949 (patch)
tree308e0cf5089a8d1df43379aedcab58bbea73f206 /apps/user_ldap/tests/AccessTest.php
parent4f8c724318de286ee19af83c4b199f8ba53ff9ef (diff)
downloadnextcloud-server-47a10bd25aadae5774fb4c011810c9d4edc53949.tar.gz
nextcloud-server-47a10bd25aadae5774fb4c011810c9d4edc53949.zip
treat iconv issues
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests/AccessTest.php')
-rw-r--r--apps/user_ldap/tests/AccessTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/AccessTest.php b/apps/user_ldap/tests/AccessTest.php
index c52b8e6611b..336b92af04f 100644
--- a/apps/user_ldap/tests/AccessTest.php
+++ b/apps/user_ldap/tests/AccessTest.php
@@ -633,13 +633,16 @@ class AccessTest extends TestCase {
}
public function intUsernameProvider() {
+ // system dependent :-/
+ $translitExpected = @iconv('UTF-8', 'ASCII//TRANSLIT', 'fränk') ? 'frank' : 'frnk';
+
return [
['alice', 'alice'],
['b/ob', 'bob'],
['charly🐬', 'charly'],
['debo rah', 'debo_rah'],
['epost@poste.test', 'epost@poste.test'],
- ['fränk', 'frank'],
+ ['fränk', $translitExpected],
[' gerda ', 'gerda'],
['🕱🐵🐘🐑', null]
];