Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Sep 2012 at 23:39 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lars toomre commentedCorrecting title... Also noting that there needs to be testUserRegistrationRebuild() looked at closely. It appears that someone took out a t() around 'Rebuild' when they should not have.
Comment #2
lars toomre commentedIt appears that there are more than a few instances in the tests for this sub-system where the $submit parameter in drupalPost is not wrapped in t(). This should be followed up on as a part of cleaning up this sub-systems tests.
Comment #3
lars toomre commentedHere is an initial untested patch for this issue. This patch includes format_string() conversions as well.
Comment #4
xjmThis looks good for the most part. I found two things to fix:
This change is not correct. These assertions have no overridden message; the string in question is part of the test.
These don't actually need to use
format_string()since there are no variables. (The$is part of the message string.) I count eight assertions like this in this class.Please provide an interdiff when rerolling the patch. Thanks!
Comment #5
lars toomre commentedMy understanding is that we had to use format_string when we have escaping in a string. If that is wrong, happy to change.
Comment #6
lars toomre commentedHere is a revised patch that addresses the issues in #4. Also attached is an interdiff (which happens to be my first ever have created so I hope it makes sense).
Comment #7
dcam commented#6 no longer applies due to changes to ElementsVerticalTabsTest.php introduced by #1742438: Vertical tabs header and container rendered even when no vertical tabs. It needs a reroll, but I'm not sure if #1742438 should be considered as a blocker to this issue. It had to be moved back to 8.x due to an issue that was created. So there are likely more test changes coming down the pipe.
Comment #8
lars toomre commentedThanks for looking at this @dcam. Attached is a a re-roll as #7 noted.
It appears that #1742438: Vertical tabs header and container rendered even when no vertical tabs is not yet ready for a commit to D8. Hence, I think that if this patch is reviewed and marked as RTBC, it can proceed. If the other issue gets committed first, this of course can be re-rolled.
I would like to see another 117 calls to t() eliminated. Thanks in advance for taking a look at this.
Comment #9
lars toomre commentedGrr... Helps to set the right status.
Comment #10
dcam commentedI tested #8. There were a couple of additional t()'s around assert messages:
FormTest.php, line 601
TriggeringElementTest.php, line 47
Comment #11
lars toomre commentedHere is a patch with the additional two changes. Thanks for the review @dcam.
Comment #12
dcam commented#11 looks good to me. I haven't found any additional t()'s around assert messages.
Comment #13
lars toomre commentedThanks for the review @dcam!!
Comment #14
webchickTum te tum....
Comment #15
jhodgdonThanks all! Committed; time to backport.
Comment #16
dcam commentedBackported #11 to D7.
Comment #17
dcam commented#16: 1797318-16-t-assert-form.patch queued for re-testing.
Comment #18
dcam commentedTagging as Novice.
Comment #19
izus commented#16: 1797318-16-t-assert-form.patch queued for re-testing.
Comment #20
izus commentedHi,
Patch in #16 looks good.
Thanks
Comment #21
jhodgdonPhew! Another one committed to 7.x. Thanks again!
Comment #22.0
(not verified) commentedAdded details of change counts from initial patch.