Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/comment/tests/src/Functional/CommentTestBase.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
186 * @return bool | 186 * @return bool |
187 * Boolean indicating whether the comment was found. | 187 * Boolean indicating whether the comment was found. |
188 */ | 188 */ |
189 public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) { | 189 public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) { |
190 if ($comment) { | 190 if ($comment) { |
191 $comment_element = $this->cssSelect('.comment-wrapper ' . ($reply ? '.indented ' : '') . '#comment-' . $comment->id() . ' ~ article'); | 191 $comment_element = $this->cssSelect('.comment-wrapper ' . ($reply ? '.indented ' : '') . 'article#comment-' . $comment->id()); |
192 if (empty($comment_element)) { | 192 if (empty($comment_element)) { |
193 return FALSE; | 193 return FALSE; |
194 } | 194 } |
195 | 195 |
196 $comment_title = $comment_element[0]->find('xpath', 'div/h3/a'); | 196 $comment_title = $comment_element[0]->find('xpath', 'div/h3/a'); |