You are here

function CommentTestBase::commentContactInfoAvailable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/CommentTestBase.php \Drupal\comment\Tests\CommentTestBase::commentContactInfoAvailable()

Checks whether the commenter's contact information is displayed.

Return value

bool Contact info is available.

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

File

core/modules/comment/src/Tests/CommentTestBase.php, line 341
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
    ->getRawContent());
}