]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
fix one tag2tag test and make the other one report the real error
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 25 Oct 2009 19:37:04 +0000 (19:37 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 25 Oct 2009 19:37:04 +0000 (19:37 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@420 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/Tag2TagTest.php

index 95e94ef1f632f22744b62fee847b124119499eaa..3305101a7ee6426f403cb8cbea126aa1638a1618 100644 (file)
@@ -267,7 +267,12 @@ class Tag2TagTest extends TestBase
     {
         $bs = $this->bs;
         $tags = array('a>b', 'b>c', 'a>d>e', 'a>a', 'a', 'r=s', 's=t=u');
-        $bs->addBookmark("http://google.com", "title", "description", "status", $tags, null, false, false, 1);
+        $uid = $this->addUser();
+        $bs->addBookmark(
+            "http://google.com", "title", "description", 'note',
+            0, $tags, null, false, false,
+            $uid
+        );
         $bookmark = $bs->getBookmarkByAddress("http://google.com");
 
         $b2ts = $this->b2ts;
@@ -300,11 +305,20 @@ class Tag2TagTest extends TestBase
         $tts->addLinkedTags('aa', 'bb', '>', 1);
 
         $tags = array('aa>bb>cc', 'dd');
-        $bs->addBookmark("web1.com", "B1", "description", "status", $tags, null, false, false, 1);
+        $bs->addBookmark(
+            "web1.com", "B1", "description", 'note', 0,
+            $tags, null, false, false, 1
+        );
         $tags = array('bb>gg', 'ee>ff');
-        $bs->addBookmark("web2.com", "B2", "description", "status", $tags, null, false, false, 1);
+        $bs->addBookmark(
+            "web2.com", "B2", "description", 'note', 0,
+            $tags, null, false, false, 1
+        );
         $tags = array('ee=ii');
-        $bs->addBookmark("web3.com", "B3", "description", "status", $tags, null, false, false, 1);
+        $bs->addBookmark(
+            "web3.com", "B3", "description", 'note', 0,
+            $tags, null, false, false, 1
+        );
 
         // Query format:
         // $bs->getBookmarks($start = 0, $perpage = NULL, $user = NULL, $tags = NULL, $terms = NULL, $sortOrder = NULL, $watched = NULL, $startdate = NULL, $enddate = NULL, $hash = NULL);