Mercurial > hg > isophonics-drupal-site
diff core/modules/comment/tests/src/Functional/CommentThreadingTest.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 |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Functional/CommentThreadingTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/comment/tests/src/Functional/CommentThreadingTest.php Thu May 09 15:33:08 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.', [