Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/tests/src/Functional/CommentTestBase.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
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'); |