Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
fa4cfd61
Commit
fa4cfd61
authored
Jan 25, 2010
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#564642
by Scott Reynolds, Dave Reid: comment_build() was renamed to comment_view()
parent
af3f94b3
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/comment/comment.test
+3
-2
3 additions, 2 deletions
modules/comment/comment.test
with
3 additions
and
2 deletions
modules/comment/comment.test
+
3
−
2
View file @
fa4cfd61
...
...
@@ -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.'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment