aboutsummaryrefslogtreecommitdiff
path: root/tests/TestBase.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-03-28 18:07:18 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-03-28 18:07:18 +0000
commit90f7d528d3f34a57d517cca268766bdbae161585 (patch)
tree78a1534c6b9e3f9864a5a5730d6fd47615a6e22f /tests/TestBase.php
parenta518928796f87ff61e7fcb34d69b374378fdadf6 (diff)
downloadsemanticscuttle-90f7d528d3f34a57d517cca268766bdbae161585.tar.gz
semanticscuttle-90f7d528d3f34a57d517cca268766bdbae161585.tar.bz2
more tests for csv export api
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@701 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tests/TestBase.php')
-rw-r--r--tests/TestBase.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/TestBase.php b/tests/TestBase.php
index aad772f..402330b 100644
--- a/tests/TestBase.php
+++ b/tests/TestBase.php
@@ -34,6 +34,7 @@ class TestBase extends PHPUnit_Framework_TestCase
* @param integer $status Bookmark visibility
* @param array $tags Array of tags to attach. If "null" is given,
* it will automatically be "unittest"
+ * @param string $title Bookmark title
*
* @return integer ID of bookmark
*
@@ -41,7 +42,7 @@ class TestBase extends PHPUnit_Framework_TestCase
*/
protected function addBookmark(
$user = null, $address = null, $status = 0,
- $tags = null
+ $tags = null, $title = null
) {
if ($user === null) {
$user = $this->addUser();
@@ -56,10 +57,13 @@ class TestBase extends PHPUnit_Framework_TestCase
if ($address === null) {
$address = 'http://example.org/' . $rand;
}
+ if ($title === null) {
+ $title = 'unittest bookmark #' . $rand;
+ }
$bid = $bs->addBookmark(
$address,
- 'unittest bookmark #' . $rand,
+ $title,
'description',
null,
$status,