diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-02 09:35:58 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-02 09:35:58 +0000 |
commit | 1b6f516bbb29178705870f6be8789701cd9b5d02 (patch) | |
tree | 90e2bdcff05712e367e07030bd951e026cea267c /tests/VoteTest.php | |
parent | d05aebe54e02ab4a8362088ca09caaff265fa670 (diff) | |
download | semanticscuttle-1b6f516bbb29178705870f6be8789701cd9b5d02.tar.gz semanticscuttle-1b6f516bbb29178705870f6be8789701cd9b5d02.tar.bz2 |
test vote() when voting is deactivated
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@494 b3834d28-1941-0410-a4f8-b48e95affb8f
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 |