X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FCommentTestBase.php;h=f93005dc5a6cb223a540641e58093a027ac4a210;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=7cadcbffe98a1a247939ac14ea1fb3d5f8b3e79f;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/comment/tests/src/Functional/CommentTestBase.php b/web/core/modules/comment/tests/src/Functional/CommentTestBase.php index 7cadcbffe..f93005dc5 100644 --- a/web/core/modules/comment/tests/src/Functional/CommentTestBase.php +++ b/web/core/modules/comment/tests/src/Functional/CommentTestBase.php @@ -336,7 +336,7 @@ abstract class CommentTestBase extends BrowserTestBase { * 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 @@ abstract class CommentTestBase extends BrowserTestBase { */ 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]; }