Mercurial > hg > cmmr2012-drupal-site
diff core/modules/comment/tests/src/Functional/CommentThreadingTest.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 |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Functional/CommentThreadingTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/comment/tests/src/Functional/CommentThreadingTest.php Thu May 09 15:34:47 2019 +0100 @@ -135,7 +135,7 @@ // <a href="...comment-1"></a> // </p> // </article> - $pattern = "//a[@id='comment-$cid']/following-sibling::article//p[contains(@class, 'parent')]//a[contains(@href, 'comment-$pid')]"; + $pattern = "//article[@id='comment-$cid']//p[contains(@class, 'parent')]//a[contains(@href, 'comment-$pid')]"; $this->assertFieldByXpath($pattern, NULL, format_string( 'Comment %cid has a link to parent %pid.', @@ -159,7 +159,7 @@ // <p class="parent"></p> // </article> - $pattern = "//a[@id='comment-$cid']/following-sibling::article//p[contains(@class, 'parent')]"; + $pattern = "//article[@id='comment-$cid']//p[contains(@class, 'parent')]"; $this->assertNoFieldByXpath($pattern, NULL, format_string( 'Comment %cid does not have a link to a parent.', [