summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-25 19:37:04 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-25 19:37:04 +0000
commit6c7dc7a20b7754de795624e6abfd8b336222060b (patch)
tree0f32da03d05a23dcf7f3c987ff8cc326e5cfe3f9
parent1bffdc3696aefdbb4144aeeef6502beda95388d2 (diff)
downloadsemanticscuttle-6c7dc7a20b7754de795624e6abfd8b336222060b.tar.gz
semanticscuttle-6c7dc7a20b7754de795624e6abfd8b336222060b.tar.bz2
fix one tag2tag test and make the other one report the real error
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@420 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--tests/Tag2TagTest.php22
1 files changed, 18 insertions, 4 deletions
diff --git a/tests/Tag2TagTest.php b/tests/Tag2TagTest.php
index 95e94ef..3305101 100644
--- a/tests/Tag2TagTest.php
+++ b/tests/Tag2TagTest.php
@@ -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);