* Test comment approval functionality through node interface.
*/
functiontestApprovalNodeInterface(){
$this->drupalLogin($this->admin_user);
$this->setAnonymousUserComment(FALSE,FALSE);
// Set anonymouse comments to require approval.
$this->setAnonymousUserComment(TRUE,FALSE);
$this->setCommentAnonymous('0');// Ensure that doesn't require contact info.
$this->drupalLogout();
// Post anonymous comment without contact info.
$subject=$this->randomName();
$body=$this->randomName();
$this->postComment($this->node,$subject,$body,TRUE,TRUE);// Set $contact to true so that it won't check for id and message.
$this->assertText(t('Your comment has been queued for moderation by site administrators and will be published after approval.'),t('Comment requires approval.'));