From 9710ede4327a4dcacec1715cb4451365474297e5 Mon Sep 17 00:00:00 2001 From: cweiske Date: Thu, 19 Nov 2009 19:23:26 +0000 Subject: 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 --- tests/BookmarkTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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)); } -- cgit v1.2.3