Skip to content
Snippets Groups Projects
Commit fa4cfd61 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #564642 by Scott Reynolds, Dave Reid: comment_build() was renamed to comment_view()

parent af3f94b3
No related branches found
No related tags found
No related merge requests found
......@@ -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.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment