aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-19 19:23:26 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-19 19:23:26 +0000
commit9710ede4327a4dcacec1715cb4451365474297e5 (patch)
treea8ad67b4d1399e8425faedbbbb4114f286a81d4d
parent563df90c75d6615ea491cba6cb0b97010bac3af0 (diff)
downloadsemanticscuttle-9710ede4327a4dcacec1715cb4451365474297e5.tar.gz
semanticscuttle-9710ede4327a4dcacec1715cb4451365474297e5.tar.bz2
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
-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));
}