From: cweiske Date: Mon, 2 Nov 2009 09:35:58 +0000 (+0000) Subject: test vote() when voting is deactivated X-Git-Tag: v0.97~203 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1b6f516bbb29178705870f6be8789701cd9b5d02;p=semanticscuttle.git test vote() when voting is deactivated git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@494 b3834d28-1941-0410-a4f8-b48e95affb8f --- diff --git a/tests/VoteTest.php b/tests/VoteTest.php index b211dcd..cb50aad 100644 --- a/tests/VoteTest.php +++ b/tests/VoteTest.php @@ -271,6 +271,22 @@ class VoteTest extends TestBase + /** + * Test vote() when voting is deactivated + * + * @return void + */ + public function testVoteVotingDeactivated() + { + $GLOBALS['enableVoting'] = false; + + $uid = 1; + $bid = $this->addBookmark(); + $this->assertFalse($this->vs->vote($bid, $uid, 1)); + } + + + /** * Test vote() with wrong vote parameter *