summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-25 10:40:00 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-25 10:40:00 +0000
commitfa4cfd616d51864373f1ad97676d2784d95284b6 (patch)
tree7466fee5e75f5e67eff2df764b774442729b943f /modules/comment
parentaf3f94b37ebb4e6b2d03f937e40a157a17dff223 (diff)
downloadbrdo-fa4cfd616d51864373f1ad97676d2784d95284b6.tar.gz
brdo-fa4cfd616d51864373f1ad97676d2784d95284b6.tar.bz2
- Patch #564642 by Scott Reynolds, Dave Reid: comment_build() was renamed to comment_view()
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 9b1192e17..14b4e1081 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -1204,7 +1204,8 @@ class CommentContentRebuild extends CommentHelperCase {
}
/**
- * Test to ensure that the comment's content array is rebuilt for every call to comment_build().
+ * Test to ensure that the comment's content array is rebuilt for every
+ * call to comment_view().
*/
function testCommentRebuild() {
// Update the comment settings so preview isn't required.
@@ -1223,7 +1224,7 @@ class CommentContentRebuild extends CommentHelperCase {
// Add the property to the content array and then see if it still exists on build.
$comment_loaded->content['test_property'] = array('#value' => $this->randomString());
- $built_content = comment_build($comment_loaded, $this->node);
+ $built_content = comment_view($comment_loaded, $this->node);
// This means that the content was rebuilt as the added test property no longer exists.
$this->assertFalse(isset($built_content['test_property']), t('Comment content was emptied before being built.'));