From: cweiske Date: Thu, 19 Nov 2009 19:23:26 +0000 (+0000) Subject: fix notice when passing an invalid array to editAllowed() X-Git-Tag: v0.97~141 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9710ede4327a4dcacec1715cb4451365474297e5;p=semanticscuttle.git 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 --- 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)); }