Per deekayen's request I've ported a fresh copy of the D6 dev branch to D7. Due to the lack of a stable release of simpletest I haven't touched the .test file.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deekayen’s picture

Status: Needs review » Needs work

Just a few little things I saw, and then I'll probably commit it so people can just start testing and reporting bugs. Simpletest 7.x is in core - that's what http://qa.drupal.org/ is all about. It'd be nice to have the tests updated where applicable.

  • The @file in .install shouldn't have new whitespace introduced on the line.
  • I know coder will complain about the removal of the comma on .install line ~43
  • The update functions - you removed the "Implements..." on one, but kept the comment and did the opposite on the other. IIRC, the correct one is the single line sentence summary, not "Implements..."
  • Coder 7.x complains when any function isn't documented (e.g. docblock for masquerade_admin_settings())
  • I'm just curious - why does system_settings_form() need to be before the additional submission handlers now?
afreeman’s picture

FileSize
47.9 KB

Thanks for getting a review together so quickly. A lot of what you've mentioned is cruft that came out of the 6.x branch when I checked it out. I've changed what you mentioned and re-ran coder set to minor, no additional issues reported.

As far as the timing goes for system_settings_form() (et al) a lot of this code represents a best guess on my part, especially in the area of the hook_user() code. All I can say for sure is the patched version successfully masquerades in my development environment. I'm looking forward to getting additional eyes on this for testing/bug reports.

deviantintegral’s picture

I can't apply either of these patches to checkouts from Git or CVS. Just to confirm, they were made against the DRUPAL-6 branch?

deekayen’s picture

Status: Needs work » Fixed

The patch is against HEAD. I committed #2. If there are bugs, they can be new issues.

afreeman’s picture

Status: Fixed » Closed (fixed)

Closing (fixed).

  • Commit b59ebbd on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #977502 by afreeman: Drupal 7 upgrade
    
    

  • Commit b59ebbd on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #977502 by afreeman: Drupal 7 upgrade