Mercurial > hg > isophonics-drupal-site
diff core/modules/comment/tests/src/Functional/CommentTestBase.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/comment/tests/src/Functional/CommentTestBase.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/comment/tests/src/Functional/CommentTestBase.php Thu Feb 28 13:21:36 2019 +0000 @@ -336,7 +336,7 @@ * Contact info is available. */ public function commentContactInfoAvailable() { - return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getRawContent()); + return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getSession()->getPage()->getContent()); } /** @@ -375,7 +375,7 @@ */ public function getUnapprovedComment($subject) { $this->drupalGet('admin/content/comment/approval'); - preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this->getRawContent(), $match); + preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this->getSession()->getPage()->getContent(), $match); return $match[2]; }