aboutsummaryrefslogtreecommitdiff
path: root/tests/Bookmark2TagTest.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-08-06 10:38:44 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-08-06 10:38:44 +0200
commitd2e437b4db84300e2b543c5827d8f517a81afaef (patch)
tree7863a0a733514684bef0917ccf3ebf3b2a0aac5a /tests/Bookmark2TagTest.php
parent5743a34a6c7757d3030479f96326f09fe5dce0b2 (diff)
parent097ecf9c510e1435d02be7843bc7e865570338ac (diff)
downloadsemanticscuttle-d2e437b4db84300e2b543c5827d8f517a81afaef.tar.gz
semanticscuttle-d2e437b4db84300e2b543c5827d8f517a81afaef.tar.bz2
Merge branch '0.98'
Diffstat (limited to 'tests/Bookmark2TagTest.php')
-rw-r--r--tests/Bookmark2TagTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Bookmark2TagTest.php b/tests/Bookmark2TagTest.php
index 4d95d69..f466a7d 100644
--- a/tests/Bookmark2TagTest.php
+++ b/tests/Bookmark2TagTest.php
@@ -71,6 +71,26 @@ class Bookmark2TagTest extends TestBase
+ public function testAttachTagsWithoutTagsAddsSystemUnfiled()
+ {
+ $bid = $this->addBookmark(null, null, 0, array());
+ $this->assertEquals(
+ array('system:unfiled'),
+ $this->b2ts->getTagsForBookmark($bid, true)
+ );
+ }
+
+ public function testAttachTagsWithArrayWithEmptyStringAddsSystemUnfiled()
+ {
+ $bid = $this->addBookmark(null, null, 0, array(''));
+ $this->assertEquals(
+ array('system:unfiled'),
+ $this->b2ts->getTagsForBookmark($bid, true)
+ );
+ }
+
+
+
/**
* Test getTagsForBookmark() when the bookmark has no tags
*