From 9c18fe1cc7e22077763baa545144cc01d5d94eab Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 5 Aug 2011 06:47:37 +0200 Subject: Fix bug #3386178: "system:unfiled" secret tag does not work --- tests/Bookmark2TagTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/Bookmark2TagTest.php b/tests/Bookmark2TagTest.php index 1367a0e..f466a7d 100644 --- a/tests/Bookmark2TagTest.php +++ b/tests/Bookmark2TagTest.php @@ -80,6 +80,15 @@ class Bookmark2TagTest extends TestBase ); } + public function testAttachTagsWithArrayWithEmptyStringAddsSystemUnfiled() + { + $bid = $this->addBookmark(null, null, 0, array('')); + $this->assertEquals( + array('system:unfiled'), + $this->b2ts->getTagsForBookmark($bid, true) + ); + } + /** -- cgit v1.2.3-54-g00ecf