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:
parent
d05aebe54e
commit
1b6f516bbb
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue