Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2012 at 19:27 UTC
Updated:
18 Jan 2013 at 02:40 UTC
Jump to comment: Most recent file
I think FlagTest should have more test. Tests that flag and unflag flags. More test would be great but can not come up with more right now.
I can write some test cases and attach a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1717672.flag_.flag-unflag-tests.patch | 5.16 KB | joachim |
Comments
Comment #1
joachim commentedThat would be fantastic!
Comment #2
socketwench commentedAgreed. I'm surprised we don't have a test for that. I can try to write it; it'd certainly be a good learning experience for me!
Comment #3
joachim commentedCommitted this patch (obviously all tests pass...)
See #616524: Add tests for Flag access for own/others' content for more tests that need writing! :D
Comment #4
socketwench commentedAnd I was just figuring out how to write that myself. >_<
Comment #5
joachim commentedSorry!
Do feel free to add more stuff -- I'm sure there's other things we could be testing.
Comment #6
joachim commentedActually, what would be really handy would be various other spots where flag access matters -- such as the two places that #1878808: remove $account parameter from flag_get_flags() will change.
Comment #7
socketwench commentedIt's okay. If I thought I could figure it out in time, I could have assigned it to myself. The issue was still fair game. Besides, now I have your code to look at and learn from.