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
This commit is contained in:
parent
157adfd7eb
commit
57d4892eb3
1 changed files with 7 additions and 3 deletions
|
@ -31,11 +31,15 @@ class TestBase extends PHPUnit_Framework_TestCase
|
||||||
*
|
*
|
||||||
* @param integer $user User ID the bookmark shall belong
|
* @param integer $user User ID the bookmark shall belong
|
||||||
* @param string $address Bookmark address to use
|
* @param string $address Bookmark address to use
|
||||||
|
* @param integer $status Bookmark visibility
|
||||||
*
|
*
|
||||||
* @return integer ID of bookmark
|
* @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) {
|
if ($user === null) {
|
||||||
$user = $this->addUser();
|
$user = $this->addUser();
|
||||||
}
|
}
|
||||||
|
@ -52,7 +56,7 @@ class TestBase extends PHPUnit_Framework_TestCase
|
||||||
'unittest bookmark #' . $rand,
|
'unittest bookmark #' . $rand,
|
||||||
'description',
|
'description',
|
||||||
null,
|
null,
|
||||||
0,
|
$status,
|
||||||
array('unittest'),
|
array('unittest'),
|
||||||
null, null, false, false,
|
null, null, false, false,
|
||||||
$user
|
$user
|
||||||
|
|
Loading…
Reference in a new issue