From 51e638912257eb25fa3ada96777b14573e7d28b5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 28 Jul 2009 10:09:25 +0000 Subject: - Patch #523950 by moshe weitzman, yched, catch: update comment rendering to take full advantage of the drupal_render() paradigm. --- modules/comment/comment.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/comment/comment.test') diff --git a/modules/comment/comment.test b/modules/comment/comment.test index 146a8538c..082d8ed22 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -76,7 +76,7 @@ class CommentHelperCase extends DrupalWebTestCase { $regex .= 'subject . '(.*?)'; // Match subject. $regex .= $comment->comment . '(.*?)'; // Match comment. - $regex .= '<\/div>/s'; // Dot matches newlines and ensure that match doesn't bleed outside comment div. + $regex .= '/s'; return (boolean)preg_match($regex, $this->drupalGetContent()); } @@ -446,7 +446,7 @@ class CommentAnonymous extends CommentHelperCase { // "Login or register to post comments" type link may be shown. $this->drupalLogout(); $this->drupalGet('node/' . $this->node->nid); - $this->assertNoRaw('
', t('Comments were not displayed.')); + $this->assertNoPattern('/
]*?)id="comments"([^>]*?)>/', t('Comments were not displayed.')); $this->assertNoLink('Add new comment', t('Link to add comment was found.')); // Attempt to view node-comment form while disallowed. @@ -459,7 +459,7 @@ class CommentAnonymous extends CommentHelperCase { $this->setAnonymousUserComment(TRUE, FALSE, FALSE); $this->drupalLogout(); $this->drupalGet('node/' . $this->node->nid); - $this->assertRaw('
', t('Comments were displayed.')); + $this->assertPattern('/
]*?)id="comments"([^>]*?)>/', t('Comments were displayed.')); $this->assertLink('Login', 1, t('Link to login was found.')); $this->assertLink('register', 1, t('Link to register was found.')); } -- cgit v1.2.3