make tests better
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@665 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
512e3a6811
commit
0685081d46
1 changed files with 6 additions and 0 deletions
|
@ -78,6 +78,8 @@ class Bookmark2TagTest extends TestBase
|
||||||
*/
|
*/
|
||||||
public function testGetTagsForBookmarkNone()
|
public function testGetTagsForBookmarkNone()
|
||||||
{
|
{
|
||||||
|
$this->addBookmark(null, null, 0, array('forz', 'barz'));
|
||||||
|
|
||||||
$bid = $this->addBookmark(null, null, 0, array());
|
$bid = $this->addBookmark(null, null, 0, array());
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
array(),
|
array(),
|
||||||
|
@ -94,6 +96,8 @@ class Bookmark2TagTest extends TestBase
|
||||||
*/
|
*/
|
||||||
public function testGetTagsForBookmarkOne()
|
public function testGetTagsForBookmarkOne()
|
||||||
{
|
{
|
||||||
|
$this->addBookmark(null, null, 0, array('forz', 'barz'));
|
||||||
|
|
||||||
$bid = $this->addBookmark(null, null, 0, array());
|
$bid = $this->addBookmark(null, null, 0, array());
|
||||||
$this->b2ts->attachTags($bid, array('foo'));
|
$this->b2ts->attachTags($bid, array('foo'));
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
|
@ -111,6 +115,8 @@ class Bookmark2TagTest extends TestBase
|
||||||
*/
|
*/
|
||||||
public function testGetTagsForBookmarkThree()
|
public function testGetTagsForBookmarkThree()
|
||||||
{
|
{
|
||||||
|
$this->addBookmark(null, null, 0, array('forz', 'barz'));
|
||||||
|
|
||||||
$bid = $this->addBookmark(null, null, 0, array());
|
$bid = $this->addBookmark(null, null, 0, array());
|
||||||
$this->b2ts->attachTags($bid, array('foo', 'bar', 'fuu'));
|
$this->b2ts->attachTags($bid, array('foo', 'bar', 'fuu'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue