]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
allow setting of status during addBookmark in tests
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 16 Feb 2010 21:57:03 +0000 (21:57 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 16 Feb 2010 21:57:03 +0000 (21:57 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@656 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/TestBase.php

index f23f678a4c47f5fddd0aeab32e8c037112ba0370..277be02f4620d1bd20a752206f9a29e9128588bc 100644 (file)
@@ -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