Get the comment ID for an unapproved comment.
string $subject: Comment subject to find.
integer Comment id.
function getUnapprovedComment($subject) {
$this
->drupalGet('admin/content/comment/approval');
preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this
->drupalGetContent(), $match);
return $match[2];
}