public function CommentTestBase::commentContactInfoAvailable in Drupal 8
Same name in this branch
- 8 core/modules/comment/src/Tests/CommentTestBase.php \Drupal\comment\Tests\CommentTestBase::commentContactInfoAvailable()
- 8 core/modules/comment/tests/src/Functional/CommentTestBase.php \Drupal\Tests\comment\Functional\CommentTestBase::commentContactInfoAvailable()
Checks whether the commenter's contact information is displayed.
Return value
bool Contact info is available.
File
- core/
modules/ comment/ src/ Tests/ CommentTestBase.php, line 353
Class
- CommentTestBase
- Provides setup and helper methods for comment tests.
Namespace
Drupal\comment\TestsCode
public function commentContactInfoAvailable() {
return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this
->getRawContent());
}