test vote() when voting is deactivated

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@494 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-11-02 09:35:58 +00:00
parent d05aebe54e
commit 1b6f516bbb

View file

@ -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
*