/** * 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); }
/** * Callback for createList(), * Returns the number of likes a message has received * * @param int $messageID */ public function list_getMessageLikeCount($messageID) { return messageLikeCount($messageID); }