Cleaning-up DrupalWebTestCase: pass #1

Damien Tournoud - November 24, 2008 - 01:00
Project:Drupal
Version:7.x-dev
Component:simpletest.module
Category:task
Priority:critical
Assigned:Damien Tournoud
Status:closed
Description

DrupalWebTestCase need a full cleanup, let's start by documenting class members, and adding proper visibility modifiers.

#1

Damien Tournoud - November 24, 2008 - 01:33
Assigned to:Anonymous» Damien Tournoud
Status:active» needs review

A first pass of clean-up. This is likely to break some stuff around.

AttachmentSize
338239-cleanup-drupal-web-test-case.patch 44.72 KB
Testbed results
338239-cleanup-drupal-web-test-case.patchfailedFailed: 7418 passes, 7 fails, 0 exceptions a href=http://testing.drupal.org/pifr/file/1/338239-cleanup-drupal-web-test-case.patchDetailed results/a

#2

Damien Tournoud - November 24, 2008 - 01:39
Title:Cleanup DrupalWebTestCase: pass #1» Cleaning-up DrupalWebTestCase: pass #1

#3

Damien Tournoud - November 24, 2008 - 01:48

Unbreak Simpletest self-test.

AttachmentSize
338239-cleanup-drupal-web-test-case.patch 45.1 KB
Testbed results
338239-cleanup-drupal-web-test-case.patchfailedFailed: 7421 passes, 4 fails, 0 exceptions Detailed results

#4

System Message - November 24, 2008 - 02:25
Status:needs review» needs work

The last submitted patch failed testing.

#5

Damien Tournoud - November 24, 2008 - 08:45
Status:needs work» needs review

Fix session tests, and reroll for this night changes. Looks good to go for this first pass.

AttachmentSize
338239-cleanup-drupal-web-test-case.patch 46.15 KB
Testbed results
338239-cleanup-drupal-web-test-case.patchre-testing

#6

catch - November 24, 2008 - 15:51

So everything in here is just code comments, and private/protected corrections. Comments look fine to me, private/protected etc. also looks fine, but then with that stuff I'd probably not notice if it wasn't.

#7

Damien Tournoud - November 24, 2008 - 16:34

About visibility modifiers: basically all methods are protected, except assert() that is very private and a public command: run().

#8

catch - November 24, 2008 - 16:36
Status:needs review» reviewed & tested by the community

That explanation makes sense, so I'm marking to RTBC.

#9

Damien Tournoud - November 25, 2008 - 12:16

Rerolled, and adding a fix for DatabaseTemporaryQueryTestCase that the test bot apparently missed. Also cleaned-up DrupalHTTPRequestTestCase that had a reference to ->_content in its comments.

AttachmentSize
338239-cleanup-drupal-web-test-case.patch 47.92 KB
Testbed results
338239-cleanup-drupal-web-test-case.patchre-testing

#10

Dries - November 26, 2008 - 13:48
Status:reviewed & tested by the community» fixed

Committed to CVS HEAD.

#11

c960657 - November 26, 2008 - 20:51
Status:fixed» needs review

This broke the File > File scan directory test. Fix attached.

AttachmentSize
338239-follow-up-1.patch 1.22 KB
Testbed results
338239-follow-up-1.patchpassedPassed: 7431 passes, 0 fails, 0 exceptions Detailed results

#12

hswong3i - November 27, 2008 - 07:53
Status:needs review» reviewed & tested by the community

+1 for #11

#13

hswong3i - November 27, 2008 - 08:38
Priority:normal» critical

Pump it to critical since it break simpletest.

#14

webchick - November 27, 2008 - 08:42
Status:reviewed & tested by the community» fixed

Thanks, committed. :( Really wish testing bot was catching these... :(

#15

System Message - December 11, 2008 - 08:51
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.