From 1b6f516bbb29178705870f6be8789701cd9b5d02 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 2 Nov 2009 09:35:58 +0000 Subject: [PATCH] test vote() when voting is deactivated git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@494 b3834d28-1941-0410-a4f8-b48e95affb8f --- tests/VoteTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 *