aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-02-19 08:07:23 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-02-19 08:07:23 +0000
commite3327d5803cdb2005e6e99ca09130ff289d0d922 (patch)
treecfdf4c61572aeab07174ba5f6d2241c71aa9ca8f
parent8fb33e0ac9b63f4b8047aca3d488c95410cc8f50 (diff)
downloadsemanticscuttle-e3327d5803cdb2005e6e99ca09130ff289d0d922.tar.gz
semanticscuttle-e3327d5803cdb2005e6e99ca09130ff289d0d922.tar.bz2
tests: add tests for search insensible to accents (but feature not implemented yet)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@41 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--tests/bookmarksTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bookmarksTest.php b/tests/bookmarksTest.php
index 17da9c7..882fb85 100644
--- a/tests/bookmarksTest.php
+++ b/tests/bookmarksTest.php
@@ -40,5 +40,16 @@ class BookmarksTest extends PHPUnit_Framework_TestCase
$bookmarks =& $bs->getBookmarks(0, 1, NULL, NULL, NULL, getSortOrder(), NULL, 0, $dtend);
}
+ public function testSearchingBookmarksAccentsInsensible()
+ {
+ $bs = $this->bs;
+
+ $bs->addBookmark("http://site1.com", "title", "éèüaàê", "status", array('tag1'), null, false, false, 1);
+ $bookmarks =& $bs->getBookmarks(0, NULL, NULL, NULL, $terms = "eeaae"); //void
+ $this->assertEquals(0, $bookmarks['total']);
+ $bookmarks =& $bs->getBookmarks(0, NULL, NULL, NULL, $terms = "eeuaae");
+ $this->assertEquals(1, $bookmarks['total']);
+ }
+
}
?>