Patch (to be ported)
Project:
User Limit
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2011 at 06:09 UTC
Updated:
7 Oct 2012 at 05:04 UTC
Unit testing seems like it would be pretty useful.
We should at least be testing for basic behavior compliance.
Comments
Comment #1
geerlingguy commentedI'm going to add some tests to the 7.x branch; once finished, if you'd like to port them back to 6.x, that might be a simpler operation than trying to recreate the tests altogether.
Comment #2
geerlingguy commentedSee commit for 7.x here: http://drupalcode.org/project/user_limit.git/commit/f14123e
Bumping back to 6.x for porting.
Comment #3
lars toomre commentedI was just looking at the tests that were added in #2. Be aware that D8 and D7 are moving toward removing t() from all test assert messages and group parameters. You might want to do the same going forward.
Comment #4
geerlingguy commentedAh, sounds like a good plan. I've noticed a ton of commits lately mentioning t(), but haven't read into them much. I'll remove them next time I run through them.
[Updated: committed fix removing t() from assertion messages - http://drupalcode.org/project/user_limit.git/commit/cb7223e]