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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Damien Tournoud’s picture

Assigned: Unassigned » Damien Tournoud
Status: Active » Needs review
FileSize
44.72 KB

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

Damien Tournoud’s picture

Title: Cleanup DrupalWebTestCase: pass #1 » Cleaning-up DrupalWebTestCase: pass #1
Damien Tournoud’s picture

Unbreak Simpletest self-test.

Status: Needs review » Needs work

The last submitted patch failed testing.

Damien Tournoud’s picture

Status: Needs work » Needs review
FileSize
46.15 KB

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

catch’s picture

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.

Damien Tournoud’s picture

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

catch’s picture

Status: Needs review » Reviewed & tested by the community

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

Damien Tournoud’s picture

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.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

c960657’s picture

Status: Fixed » Needs review
FileSize
1.22 KB

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

hswong3i’s picture

Status: Needs review » Reviewed & tested by the community

+1 for #11

hswong3i’s picture

Priority: Normal » Critical

Pump it to critical since it break simpletest.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

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

Status: Fixed » Closed (fixed)

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