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.
Hi,
I found a couple of small commenting standards issue when running coder on the Google Analytics module. The attached patch fixes these. Though the patch was made against the DRUPAL-6--1 branch, it should also apply cleanly to the DRUPAL-6--2 branch too.
Also, as a side note, you should consider updating your simple tests to work with the newer SimpleTest API, for example, your tests should extend DrupalWebTestCase
rather than DrupalTestCase
. See the SimpleTest module page for links to the updated docs.
Cheers,
Stella
Comment | File | Size | Author |
---|---|---|---|
#5 | googleanalytics_comment_2.patch | 674 bytes | stella |
#1 | google_analytics_comments.patch | 652 bytes | stella |
google_analytics_comments.patch | 1.27 KB | stella | |
Comments
Comment #1
stella CreditAttribution: stella commentedRe-rolled the patch with some formatting corrected. Also removed the @file comment block for the test file from my last patch since according to current standards at http://groups.drupal.org/node/7731 no @file comments should be used for test files, though this may change in the future.
Comment #2
hass CreditAttribution: hass commentedDo you know how to update simpletest? Is it only the above name change? If not - are you able to upgrade?
Comment #3
stella CreditAttribution: stella commentedNo, I'm afraid I don't really. I'm pretty sure that
get_info()
was renamed togetInfo()
, but I don't know what the other changes were. The changes came about because the new version doesn't use the external simpletest library. The google analytics code only uses a small number of simpletest functions so you could check the api functions listed at http://drupal.org/node/30023 and see if any have changed. Sorry I can't give you any more info.Cheers,
Stella
Comment #4
hass CreditAttribution: hass commentedWe need to find someone who can update the simpletest stuff... :-)
Comment #5
stella CreditAttribution: stella commentedCommenting standards for test files have changed (http://groups.drupal.org/node/7731), so here's a patch that adds in the @file block to the test file that I had in my original patch.
Cheers,
Stella
Comment #6
catchTrivial patch, RTBC.
Comment #7
hass CreditAttribution: hass commentedComment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.