summaryrefslogtreecommitdiff
path: root/roundcubemail/tests/vcards.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-04 22:00:35 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-01-04 22:00:35 +0000
commita806be05e97b5525a4bd46725a6bac01dfe28cf7 (patch)
tree30f0dc6f282fc5aaac802a4d65b0b4d2d27e9200 /roundcubemail/tests/vcards.php
parenta0d08bc9ed912a2bf396188fb33e1f4305ee8b7c (diff)
Do charset detection in vcards with encoded values (#1485542)
git-svn-id: https://svn.roundcube.net/trunk@4393 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests/vcards.php')
-rw-r--r--roundcubemail/tests/vcards.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/tests/vcards.php b/roundcubemail/tests/vcards.php
index 72c687484..3b8f260c4 100644
--- a/roundcubemail/tests/vcards.php
+++ b/roundcubemail/tests/vcards.php
@@ -48,6 +48,10 @@ class rcube_test_vcards extends UnitTestCase
$this->assertEqual(2, count($vcards), "Detected 2 vcards");
$this->assertEqual("Apple Computer AG", $vcards[0]->displayname, "FN => displayname");
$this->assertEqual("John Doë", $vcards[1]->displayname, "Displayname with correct charset");
+
+ // http://trac.roundcube.net/ticket/1485542
+ $vcards2 = rcube_vcard::import(file_get_contents($this->_srcpath('thebat.vcf')));
+ $this->assertEqual("Iksiñski", $vcards2[0]->surname, "Detect charset in encoded values");
}
}