]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
test vote() when voting is deactivated
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 2 Nov 2009 09:35:58 +0000 (09:35 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 2 Nov 2009 09:35:58 +0000 (09:35 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@494 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/VoteTest.php

index b211dcd6ee039572e8ffdfd2e9a56d6afc6a0c8d..cb50aad2ef9780ecbad4232925be02bcdae8b48f 100644 (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
      *