Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
DrupalWebTestCase need a full cleanup, let's start by documenting class members, and adding proper visibility modifiers.
Comment | File | Size | Author |
---|---|---|---|
#11 | 338239-follow-up-1.patch | 1.22 KB | c960657 |
#9 | 338239-cleanup-drupal-web-test-case.patch | 47.92 KB | Damien Tournoud |
#5 | 338239-cleanup-drupal-web-test-case.patch | 46.15 KB | Damien Tournoud |
#3 | 338239-cleanup-drupal-web-test-case.patch | 45.1 KB | Damien Tournoud |
#1 | 338239-cleanup-drupal-web-test-case.patch | 44.72 KB | Damien Tournoud |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedA first pass of clean-up. This is likely to break some stuff around.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedComment #3
Damien Tournoud CreditAttribution: Damien Tournoud commentedUnbreak Simpletest self-test.
Comment #5
Damien Tournoud CreditAttribution: Damien Tournoud commentedFix session tests, and reroll for this night changes. Looks good to go for this first pass.
Comment #6
catchSo 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.
Comment #7
Damien Tournoud CreditAttribution: Damien Tournoud commentedAbout visibility modifiers: basically all methods are protected, except assert() that is very private and a public command: run().
Comment #8
catchThat explanation makes sense, so I'm marking to RTBC.
Comment #9
Damien Tournoud CreditAttribution: Damien Tournoud commentedRerolled, 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.
Comment #10
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.
Comment #11
c960657 CreditAttribution: c960657 commentedThis broke the File > File scan directory test. Fix attached.
Comment #12
hswong3i CreditAttribution: hswong3i commented+1 for #11
Comment #13
hswong3i CreditAttribution: hswong3i commentedPump it to critical since it break simpletest.
Comment #14
webchickThanks, committed. :( Really wish testing bot was catching these... :(