I made some simpletest test cases + an abstract class to test pageroute. It's very simple but it does it purpose.

Comments

fago’s picture

Status: Active » Needs work

* Please watch out for tabs, you have quite some of them in your patch. Also always have a look on your patches before posting them, so you can identify wrong changes beforehand yourself.
* Doing a PagerouteTestCase looks fine, however the file should just be pageroute.test.
* The static getInfo() function should not make use of t() calls. (Yes that's quite new, but let's follow that.)
* It's fine that you test each page, but it's also important that clicking through the route works. Best also add a test function that tests that - so you can also test that the route's redirect target is right once you have finished the route.

sepgil’s picture

StatusFileSize
new8.32 KB

All issues should be corrected and I made the requested test that clicks through the route.

fago’s picture

Status: Needs work » Fixed

I removed the debug message that was left and committed it, thanks :)

Please watch out for removing any debug message for future patches.

sepgil’s picture

Status: Fixed » Needs review
StatusFileSize
new4.25 KB

Since the Tabs and Node Management page types were removed(http://drupal.org/node/558862), I hade to update my simpletests.

sepgil’s picture

StatusFileSize
new5.94 KB

Sorry, attached the wrong patch in the last post.

fago’s picture

Status: Needs review » Needs work

hm, I tried to run the tests with the recent dev-snapshot but it ran into several problems:

286 passes, 26 fails, and 3 exceptions

Also you missed a debug statement.

fago’s picture

Issue tags: +pageroute-beta2
sepgil’s picture

Status: Needs work » Needs review
StatusFileSize
new2.07 KB

fixed some issues and improved the simpletests...

fago’s picture

Status: Needs review » Fixed

thanks, committed. Now they are working again :)

Status: Fixed » Closed (fixed)
Issue tags: -pageroute-beta2

Automatically closed -- issue fixed for 2 weeks with no activity.