diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-16 21:57:03 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-02-16 21:57:03 +0000 |
commit | 57d4892eb346bf8837416dd4ea3571d87bd0f486 (patch) | |
tree | 4c26ea6dce01acb80abcfb0b1b4a9e9014797125 /tests/TestBase.php | |
parent | 157adfd7eb157917d338571426ad94539c37c3f8 (diff) | |
download | semanticscuttle-57d4892eb346bf8837416dd4ea3571d87bd0f486.tar.gz semanticscuttle-57d4892eb346bf8837416dd4ea3571d87bd0f486.tar.bz2 |
allow setting of status during addBookmark in tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@656 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tests/TestBase.php')
-rw-r--r-- | tests/TestBase.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/TestBase.php b/tests/TestBase.php index f23f678..277be02 100644 --- a/tests/TestBase.php +++ b/tests/TestBase.php @@ -31,11 +31,15 @@ class TestBase extends PHPUnit_Framework_TestCase * * @param integer $user User ID the bookmark shall belong * @param string $address Bookmark address to use + * @param integer $status Bookmark visibility * * @return integer ID of bookmark + * + * @see SemanticScuttle_Service_Bookmark::addBookmark() */ - protected function addBookmark($user = null, $address = null) - { + protected function addBookmark( + $user = null, $address = null, $status = 0 + ) { if ($user === null) { $user = $this->addUser(); } @@ -52,7 +56,7 @@ class TestBase extends PHPUnit_Framework_TestCase 'unittest bookmark #' . $rand, 'description', null, - 0, + $status, array('unittest'), null, null, false, false, $user |