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

boombatower - April 7, 2008 - 01:40
Assigned to:Anonymous» boombatower

I will be working on this, just to let everyone know.

#2

Tistur - April 7, 2008 - 05:09
Status:active» patch (code needs work)

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.

AttachmentSize
profile_tistur.test9.5 KB

#3

Tistur - April 7, 2008 - 05:12
Status:patch (code needs work)» patch (code needs review)

#4

Tistur - April 7, 2008 - 05:16

Some small changes. Got rid of module_list() in getInfo functions, and some style fixes.

AttachmentSize
profile_tistur.test9.25 KB

#5

chx - April 7, 2008 - 05:18

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

boombatower - April 7, 2008 - 05:55

@Tistur: I will review later...feel free to set this assigned to you.

#7

Tistur - April 7, 2008 - 13:23
Assigned to:boombatower» Tistur

#8

boombatower - April 7, 2008 - 19:01
Status:patch (code needs review)» patch (code needs work)

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 be setUp() and similar with others.

AttachmentSize
profile.test9.34 KB

#9

boombatower - May 16, 2008 - 06:40
Project:SimpleTest» Drupal
Version:7.x-1.x-dev» 7.x-dev
Component:Code» tests
Assigned to:Tistur» Anonymous

This could really use to be started over again. I may get around to it. Otherwise anyone else is free to it.

#10

chx - May 16, 2008 - 09:49
Status:patch (code needs work)» fixed

The core profile test has been rewritten already.

#11

Anonymous (not verified) - May 30, 2008 - 09:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.