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
This commit is contained in:
parent
1bffdc3696
commit
6c7dc7a20b
1 changed files with 18 additions and 4 deletions
|
@ -267,7 +267,12 @@ class Tag2TagTest extends TestBase
|
||||||
{
|
{
|
||||||
$bs = $this->bs;
|
$bs = $this->bs;
|
||||||
$tags = array('a>b', 'b>c', 'a>d>e', 'a>a', 'a', 'r=s', 's=t=u');
|
$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");
|
$bookmark = $bs->getBookmarkByAddress("http://google.com");
|
||||||
|
|
||||||
$b2ts = $this->b2ts;
|
$b2ts = $this->b2ts;
|
||||||
|
@ -300,11 +305,20 @@ class Tag2TagTest extends TestBase
|
||||||
$tts->addLinkedTags('aa', 'bb', '>', 1);
|
$tts->addLinkedTags('aa', 'bb', '>', 1);
|
||||||
|
|
||||||
$tags = array('aa>bb>cc', 'dd');
|
$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');
|
$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');
|
$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:
|
// Query format:
|
||||||
// $bs->getBookmarks($start = 0, $perpage = NULL, $user = NULL, $tags = NULL, $terms = NULL, $sortOrder = NULL, $watched = NULL, $startdate = NULL, $enddate = NULL, $hash = NULL);
|
// $bs->getBookmarks($start = 0, $perpage = NULL, $user = NULL, $tags = NULL, $terms = NULL, $sortOrder = NULL, $watched = NULL, $startdate = NULL, $enddate = NULL, $hash = NULL);
|
||||||
|
|
Loading…
Reference in a new issue