summaryrefslogtreecommitdiffstatshomepage
path: root/tests/BookmarkTest.php
diff options
context:
space:
mode:
authorGravatar cweiske2009-11-19 19:23:26 +0000
committerGravatar cweiske2009-11-19 19:23:26 +0000
commit9710ede4327a4dcacec1715cb4451365474297e5 (patch)
treea8ad67b4d1399e8425faedbbbb4114f286a81d4d /tests/BookmarkTest.php
parent563df90c75d6615ea491cba6cb0b97010bac3af0 (diff)
downloadscuttle-9710ede4327a4dcacec1715cb4451365474297e5.tar.gz
scuttle-9710ede4327a4dcacec1715cb4451365474297e5.zip
fix notice when passing an invalid array to editAllowed()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@559 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tests/BookmarkTest.php')
-rw-r--r--tests/BookmarkTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/BookmarkTest.php b/tests/BookmarkTest.php
index b99dfd7..f54b9e5 100644
--- a/tests/BookmarkTest.php
+++ b/tests/BookmarkTest.php
@@ -294,6 +294,10 @@ class BookmarkTest extends TestBase
*/
public function testEditAllowedBookmarkId()
{
+ $uid = $this->addUser();
+ $bid = $this->addBookmark();
+ $this->us->setCurrentUserId($uid);
+ $this->assertTrue($this->bs->editAllowed($bid));
}