Closed (fixed)
Project:
SimpleTest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2007 at 08:18 UTC
Updated:
19 Jan 2008 at 14:51 UTC
Jump to comment: Most recent file
Webchick posted a great list of features she checks every time by hand which make great candidates for simpletests. http://groups.drupal.org/node/5974
If you write a test for any of the features on that list post here.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | menu-module-tests-173461-5.patch | 5.29 KB | pwolanin |
| #1 | menu-module-tests-173461-2.patch | 5.02 KB | pwolanin |
Comments
Comment #1
pwolanin commentedhere are a starting set of tests for menu module for 6.x.
My first attempt to do this- it took me all day to get right.
Comment #2
pwolanin commentedargh - ok now this is driving me insane. When testing the above patch on PHP 4.4/Apache 1.3 (as opposed to PHP 5.2, Apache 2). I get a single fail (line 68):
This is a test confirming link creation that is run twice (two different links), it passes the first time, and a subsequent test confirms that the link is created in the DB. What is wrong?!?
Comment #3
pwolanin commentedok - ignore the comment above - the problem seems to be fixed after re-installing the DB.
Comment #4
Rok Žlender commentedpwolanin thanks for writing the tests. My review:
Comment #5
pwolanin commentedupdated tests attached. Apparently I still need to use url() with the param array('absolute' => TRUE) for druaplGET() ? Without doing so the tests fail.
Comment #6
Rok Žlender commentedJust a quick follow up. Yes you still need url for drupalGet. Maybe this should be changed for consistenca.
Comment #7
pwolanin commentedIt would e nice to have consistency between the Post and Get methods, unless there is some case where you don't want url().
Comment #8
Rok Žlender commentedPatch committed.
And I completely agree with you we should have consitent use of post and get I'll write up a patch and commit it. I don't think there will be any problems as url() can also pass thru absolute urls
Comment #9
chx commentedHaving one placeholder for the many tests webchick suggested did not work out. We had many separate issues opened and most of them coded.
Comment #10
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.