function CommentNonNodeTest::commentContactInfoAvailable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Tests/CommentNonNodeTest.php \Drupal\comment\Tests\CommentNonNodeTest::commentContactInfoAvailable()
Checks whether the commenter's contact information is displayed.
Return value
bool Contact info is available.
File
- core/
modules/ comment/ src/ Tests/ CommentNonNodeTest.php, line 208 - Contains \Drupal\comment\Tests\CommentNonNodeTest.
Class
- CommentNonNodeTest
- Tests commenting on a test entity.
Namespace
Drupal\comment\TestsCode
function commentContactInfoAvailable() {
return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this
->getRawContent());
}