Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2008 at 08:10 UTC
Updated:
29 Aug 2009 at 06:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedWorking on it..
Comment #2
Anonymous (not verified) commentedHere's a patch to modules/simpletest/tests/common.test, providing the test. I'm not completely sure if this is the way it's supposed to be. If I've missed anything, please let me know.
Comment #3
redndahead commentedPatch apply's and works but there were coding standard violations. Spaces around concatenation, spaces in front of comments and caps at beginning of comments.
Comment #4
redndahead commentedWhoops forgot to change back
Comment #5
dmitrig01 commentedI've reviewed this, it's good.
Comment #6
webchickSince this is a testing party patch, I'm going to be very nit-picky in this review. It's only because I care. :)
Let's add a PHPdoc block with a quick sentence that summarizes what this test case does.
a) Should be single quotes, not double, since there's no interpolation going on.
b) Should end in a period.
Should be a comma at the end of this line. I know it looks like a mistake, but it's the standards. :)
a) /* needs to be /**
b) Test case isn't very descriptive. I would replace that with a one-sentence summary, like "Test the url() function's $options array." Make sure there's a newline between this sentence and the lines below it with more detail.
The last messages were nice and descriptive as to what was being tested. These two, a little less so...
That's weird that the code below passes. Looks like this needs a trailing /.
That's it. :) Thanks a lot!!
Comment #7
redndahead commentedHopefully this one is better.
url('http://drupal.org', array('query' => 'param1');
returns http://drupal.org?param1
So the ending slash is not needed.
Comment #8
redndahead commentedAdded the test function to the other descriptions.
Comment #10
redndahead commentedComment #11
catchgetInfo() should no longer have PHPdoc, see http://drupal.org/node/325974
Also it looks like the calls to t() could use double quotes to save escaping the single quotes.
Comment #12
lilou commentedReroll according to #11.
Comment #13
lilou commentedComment #14
mr.baileys@lilou: link to patch in #12 doesn't seem to be working (directs me to the d.o. home page), and the testbot isn't picking this one up for testing. Could you re-upload?
Comment #15
lilou commentedComment #17
lilou commentedNow tests may passes.
Comment #19
dave reidMoving to the appropriate component since url() is base of the base system.
Comment #20
kscheirertests look good, all pass. rerolled against HEAD.
Comment #21
lilou commentedAttached patch remove
t()ingetinfo()(#500866: [META] remove t() from assert message).Comment #23
kscheirerPatch applied without fuzz and tests pass. Not sure why testbot is complaining of a warning in the Javascript test.
As a side note though, we now have 3 tests in the System group that all deal with the url() function:
Comment #24
webchickWhoops. Sorry this took so long to get back on my radar. :\
Committed to HEAD, thanks!