aboutsummaryrefslogtreecommitdiff
path: root/tests/Bookmark2TagTest.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-03-21 06:39:11 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-03-21 06:39:11 +0100
commitc4ba9ef2d295f85897557ce1f841a8bb368ed5ee (patch)
treece20e56b767776e1242938d997da5f9e55991a2b /tests/Bookmark2TagTest.php
parentf8b5ad1cadd1370420f5477c47545386865baf94 (diff)
downloadsemanticscuttle-c4ba9ef2d295f85897557ce1f841a8bb368ed5ee.tar.gz
semanticscuttle-c4ba9ef2d295f85897557ce1f841a8bb368ed5ee.tar.bz2
add (broken) tests for Services_Tag::normalize and Bookmark2Tag::attachTags with some empty tags
Diffstat (limited to 'tests/Bookmark2TagTest.php')
-rw-r--r--tests/Bookmark2TagTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/Bookmark2TagTest.php b/tests/Bookmark2TagTest.php
index f466a7d..b0eccd1 100644
--- a/tests/Bookmark2TagTest.php
+++ b/tests/Bookmark2TagTest.php
@@ -89,7 +89,15 @@ class Bookmark2TagTest extends TestBase
);
}
-
+ public function testAttachTagsWithSomeEmptyTags()
+ {
+ $bid = $this->addBookmark(null, null, 0, array());
+ $this->b2ts->attachTags($bid, array('foo', '', 'bar', 'baz'));
+ $this->assertEquals(
+ array('foo', 'bar', 'baz'),
+ $this->b2ts->getTagsForBookmark($bid)
+ );
+ }
/**
* Test getTagsForBookmark() when the bookmark has no tags