title = 'TestComment'; $comment->createdBy = new NullAccount(1); $comment->list = $lId; $cId = CommentMapper::create($comment); $vote = new CommentVote(); $vote->comment = $cId; $vote->score = 1; $vote->createdBy = 1; CommentVoteMapper::create($vote); $voteR = CommentvoteMapper::findVote($cId, 1); self::assertEquals($vote->comment, $voteR->comment); self::assertEquals($vote->createdBy, $voteR->createdBy); } }