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 *