);
}
-
+ 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
}
+ public function testNormalizeEmptyValues()
+ {
+ $tags = $this->ts->normalize(
+ array('foo', '', 'bar', 'baz')
+ );
+ $this->assertEquals(array('foo', 'bar', 'baz'), $tags);
+ }
+
}
?>