Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
tests
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2008 at 07:30 UTC
Updated:
30 May 2008 at 09:51 UTC
Jump to comment: Most recent file
I briefly checked and about 95% of the test code is duplication and from getInfo it can be seen it was written with copypaste.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | profile.test | 9.34 KB | boombatower |
| #4 | profile_tistur.test | 9.25 KB | Tistur |
| #2 | profile_tistur.test | 9.5 KB | Tistur |
Comments
Comment #1
boombatower commentedI will be working on this, just to let everyone know.
Comment #2
Tistur commentedI spoke with chx on IRC and here is the result. I have "fixed" most of the code. The exception is mostly ProfileTest2TestCase, which I cleaned up a little bit, but otherwise am stuck on.
Comment #3
Tistur commentedComment #4
Tistur commentedSome small changes. Got rid of module_list() in getInfo functions, and some style fixes.
Comment #5
chx commentedI told Tistur to feel free to upload the whole test, there is hardly any point in bothering with a patch at this point... very nice job, I hope I will have time to test later.
Comment #6
boombatower commented@Tistur: I will review later...feel free to set this assigned to you.
Comment #7
Tistur commentedComment #8
boombatower commentedHad to make a number of changes to make it proper PHP so I could run it. After running it I came up with the following:
This test needs a large amount of work.
Methods should all be camelCase unlike:
test_simple_field.I believe coding standards would say
setUp( )would besetUp()and similar with others.Comment #9
boombatower commentedThis could really use to be started over again. I may get around to it. Otherwise anyone else is free to it.
Comment #10
chx commentedThe core profile test has been rewritten already.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.