]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
tests: add tests for search insensible to accents (but feature not implemented yet)
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 Feb 2008 08:07:23 +0000 (08:07 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 Feb 2008 08:07:23 +0000 (08:07 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@41 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/bookmarksTest.php

index 17da9c7d8a0d908754c19421a9936449505dcedc..882fb8598a4a084b0bbb968b9bb4e3d35fbfc556 100644 (file)
@@ -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']);
+    }
+
 }
 ?>