Exemplo n.º 1
5
 /**
  * Remove the like that was given
  */
 function testRemoveLikeTopic()
 {
     $liked_message = basicMessageInfo($this->id_topic, true, true);
     // Lets remove the like from the topic
     likePost(1, $liked_message, '-');
     // get the number of likes, better be none now
     $likescount = messageLikeCount($this->id_topic);
     $this->assertEqual($likescount, 0);
 }
Exemplo n.º 2
0
 /**
  * Callback for createList(),
  * Returns the number of likes a message has received
  *
  * @param int $messageID
  */
 public function list_getMessageLikeCount($messageID)
 {
     return messageLikeCount($messageID);
 }