Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
contact.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Aug 2012 at 14:58 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lazysoundsystem commentedHere's the patch.
Comment #2
lazysoundsystem commentedChanging to 'needs review'.
Comment #3
lazysoundsystem commentedI started this before reading through #500866: [META] remove t() from assert message, where they've been trying to solve this since 2009. Best to wait for confirmation there before putting any more work into this.
Comment #4
lars toomre commented#1: remove-t-from-Contact-asserts-1742830-1.patch queued for re-testing.
Comment #5
lars toomre commentedAll of the changes removing t() from assert messages are appropriate. The re-test is green too so RBTC.
Comment #6
dries commentedCommitted to 8.x. Thanks!
Comment #7
xjmWe're backporting these. :)
Comment #8
andypostThere's a some strings are still there, also I recommend to remove a group (Contact) from asserts. Probably $this->assertEqual(value1, value2) is enough....
this t() should not be there
Comment #9
lars toomre commentedAtached is a patch which addresses the missing t() removals from messages.
@andypost - Can you open up a separate issue to remove the group parameter?
Comment #10
andypost@Lars Toomre, I see no reason in new issue - this one is enough.
Please, re-roll a patch without group - this lines is one used this approach and this issue is about clean-up so let's make it here
Comment #11
lars toomre commentedI will leave the call about whether your request is appropriate to @xjm and @jhodgdon. I am tired of being accussed of scope creap.
This isssue is primarily about removing t() which slows down tests. Whether there are or not group parameters are another issue.
Comment #12
lazysoundsystem commentedThanks for picking these up - I noticed I'd missed them when rolling the D7 backport.
I couldn't find any documentation about how they should be used, beyond the doxygen comment that they could be 'Browser' or 'Php', so I'm not sure if 'Contact' isn't an appropriate group for these, but it is inconsistent with all of the other module tests I've been through, so here's a patch without them.
I've opened another issue to make the use of groups more clear:
#1799326: Clean up $group usage in simpletests
Comment #13
andypostGreat!
Comment #14
webchickSince this concerns coding standards, moving to Jennifer's queue.
Comment #15
jhodgdonUmmm... why is the group "contact" being *added* to these tests? We shouldn't be adding groups to tests.
Comment #16
jhodgdonComment #17
andypostI think this should wait for #1588422: Convert contact categories to configuration system
Comment #18
dcam commentedThe t() functions shown in #12 were removed by http://drupal.org/node/1588422#comment-6587438. Moving to D7 for backport.
Comment #19
dcam commentedBackported #1 to D7.
Comment #20
andypost#19: 1742830-19-contact-t.patch queued for re-testing.
Comment #21
izus commented#19: 1742830-19-contact-t.patch queued for re-testing.
Comment #22
izus commentedseems good.
Thanks !
Comment #23
jhodgdonThanks all! Committed to 7.x.