diff options
Diffstat (limited to 'tests/VoteTest.php')
| -rw-r--r-- | tests/VoteTest.php | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/tests/VoteTest.php b/tests/VoteTest.php index b211dcd..cb50aad 100644 --- a/tests/VoteTest.php +++ b/tests/VoteTest.php @@ -272,6 +272,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       *       * @return void | 
