From 3b3fd65598b1915c600829b258a770b21dcc2f06 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sun, 24 Apr 2016 15:29:15 +0200 Subject: [PATCH] Add test on adding bookmark with URL containing umlaut Does not relate to this issue (different code path, not covered by tests yet), but still it is a good addition. --- tests/lib_bookmark_test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib_bookmark_test.php b/tests/lib_bookmark_test.php index be626234..0135b043 100644 --- a/tests/lib_bookmark_test.php +++ b/tests/lib_bookmark_test.php @@ -17,8 +17,10 @@ class Test_LibBookmarks_Bookmarks extends PHPUnit_Framework_TestCase { function testAddBookmark() { $this->cleanDB(); $this->assertCount(0, Bookmarks::findBookmarks($this->userid, $this->db, 0, 'id', array(), true, -1)); - Bookmarks::addBookmark($this->userid, $this->db, 'http://owncloud.org', 'Owncloud project', array('oc', 'cloud'), 'An Awesome project'); + Bookmarks::addBookmark($this->userid, $this->db, 'http://owncloud.org', 'owncloud project', array('oc', 'cloud'), 'An Awesome project'); $this->assertCount(1, Bookmarks::findBookmarks($this->userid, $this->db, 0, 'id', array(), true, -1)); + Bookmarks::addBookmark($this->userid, $this->db, 'http://de.wikipedia.org/Ü', 'Das Ü', array('encyclopedia', 'lang'), 'A terrific letter'); + $this->assertCount(2, Bookmarks::findBookmarks($this->userid, $this->db, 0, 'id', array(), true, -1)); } function testFindBookmarks() {