Polish profile test
chx - April 5, 2008 - 07:30
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | tests |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I briefly checked and about 95% of the test code is duplication and from getInfo it can be seen it was written with copypaste.

#1
I will be working on this, just to let everyone know.
#2
I 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.
#3
#4
Some small changes. Got rid of module_list() in getInfo functions, and some style fixes.
#5
I 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.
#6
@Tistur: I will review later...feel free to set this assigned to you.
#7
#8
Had 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:
399 passes, 298 fails and 539 exceptions.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.#9
This could really use to be started over again. I may get around to it. Otherwise anyone else is free to it.
#10
The core profile test has been rewritten already.
#11
Automatically closed -- issue fixed for two weeks with no activity.