function CommentTestBase::commentContactInfoAvailable

Checks whether the commenter's contact information is displayed.

Return value

boolean Contact info is available.

1 call to CommentTestBase::commentContactInfoAvailable()
CommentAnonymousTest::testAnonymous in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentAnonymousTest.php
Tests anonymous comment functionality.

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php, line 278
Contains Drupal\comment\Tests\CommentTestBase.

Class

CommentTestBase
Provides setup and helper methods for comment tests.

Namespace

Drupal\comment\Tests

Code

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