function CommentHelperCase::commentContactInfoAvailable

7.x comment.test CommentHelperCase::commentContactInfoAvailable()

Check for contact info.

Return value

boolean Contact info is available.

1 call to CommentHelperCase::commentContactInfoAvailable()
CommentAnonymous::testAnonymous in drupal-7.x/modules/comment/comment.test
Test anonymous comment functionality.

File

drupal-7.x/modules/comment/comment.test, line 212
Tests for comment.module.

Class

CommentHelperCase

Code

function commentContactInfoAvailable() {
  return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->drupalGetContent());
}