aboutsummaryrefslogtreecommitdiff
path: root/tests/TestBase.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-03-23 08:23:36 +0100
committerChristian Weiske <cweiske@cweiske.de>2011-03-23 08:23:36 +0100
commitd4ccb1d3d3abf433200b39e8a5566a71bb1e6c2b (patch)
tree0f2929238c43a86ce261604d6848c598cbdc3fc5 /tests/TestBase.php
parentf67250a720c96031309f7c9ed129bb30e4972242 (diff)
downloadsemanticscuttle-d4ccb1d3d3abf433200b39e8a5566a71bb1e6c2b.tar.gz
semanticscuttle-d4ccb1d3d3abf433200b39e8a5566a71bb1e6c2b.tar.bz2
first unit tests for Bookmark2Tag::getPopularTags
Diffstat (limited to 'tests/TestBase.php')
-rw-r--r--tests/TestBase.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/TestBase.php b/tests/TestBase.php
index 6006f4e..3e2e213 100644
--- a/tests/TestBase.php
+++ b/tests/TestBase.php
@@ -31,6 +31,7 @@ class TestBase extends PHPUnit_Framework_TestCase
* @param array $tags Array of tags to attach. If "null" is given,
* it will automatically be "unittest"
* @param string $title Bookmark title
+ * @param string $date strtotime-compatible string
*
* @return integer ID of bookmark
*
@@ -38,7 +39,7 @@ class TestBase extends PHPUnit_Framework_TestCase
*/
protected function addBookmark(
$user = null, $address = null, $status = 0,
- $tags = null, $title = null
+ $tags = null, $title = null, $date = null
) {
if ($user === null) {
$user = $this->addUser();
@@ -64,7 +65,7 @@ class TestBase extends PHPUnit_Framework_TestCase
null,
$status,
$tags,
- null, null, false, false,
+ null, $date, false, false,
$user
);
return $bid;