comparison core/modules/comment/src/Tests/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 c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
192 * @return bool 192 * @return bool
193 * Boolean indicating whether the comment was found. 193 * Boolean indicating whether the comment was found.
194 */ 194 */
195 public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) { 195 public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
196 if ($comment) { 196 if ($comment) {
197 $comment_element = $this->cssSelect('.comment-wrapper ' . ($reply ? '.indented ' : '') . '#comment-' . $comment->id() . ' ~ article'); 197 $comment_element = $this->cssSelect('.comment-wrapper ' . ($reply ? '.indented ' : '') . 'article#comment-' . $comment->id());
198 if (empty($comment_element)) { 198 if (empty($comment_element)) {
199 return FALSE; 199 return FALSE;
200 } 200 }
201 201
202 $comment_title = $comment_element[0]->xpath('div/h3/a'); 202 $comment_title = $comment_element[0]->xpath('div/h3/a');