This information is from the code coverage report (see http://coverage.cwgordon.com/coverage).
We need to test:
1) custom_url_rewrite_inbound().
2) drupal_match_path().
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | drupal_custom_rewrite_url_inbound_test.patch | 2.58 KB | ThiOz |
| #10 | custom_url_rewrite_inbound_test.patch | 3.13 KB | ThiOz |
| #8 | custom_rewrite_url_inbound_test.patch | 3.1 KB | ThiOz |
| #7 | custom_rewrite_url_inbound.patch | 2.52 KB | benshell |
| #3 | custom_rewrite_url_inbound.patch | 2.43 KB | ThiOz |
Comments
Comment #1
catch#293496: TestingParty08: drupal_match_path() is now over there.
So restricting this to custom_url_rewrite_inbound()
Not sure how this'll work given that function has to be in settings.php
Comment #2
chx commentedIt can be in a modules that implements hook_boot (even an empty hook_boot function will do). Those are loaded during DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE and DRUPAL_BOOTSTRAP_PATH is a later stage.
Comment #3
ThiOz commentedHi Guys,
Yusuf and i created a test for this function. It hasn't been reviewed yet.
Comment #4
stevenpatzComment #5
dries commentedMmm, testNoPath() doesn't seem to be called anywhere?
Comment #6
ThiOz commentedGood point
I thought is was necessary to include the custom_rewrite_url_inbound.inc file but after some testing I found out that is not the case,
I will post the updated patch asap
Cheers Rob
Comment #7
benshell commentedI updated the text strings in the patch to follow conventions, and I moved the custom_rewrite_url_inbound.inc include into the test function where it's needed.
Comment #8
ThiOz commentedHi Benshell,
I reviewed the patch and changed a couple of things to make it more in the Drupal codestyle and I added the include in the third testfunction to be sure that the function exists and really cannot be matched.
I posted the patch for reviewing.
Cheers
Comment #9
dries commented1.
the custom_url_rewrite_inbound(). function-- the point is not in the right spot.2. There are still some code-style issues. We changed the rules around string concatenation.
Should be a quick and easy re-roll.
Comment #10
ThiOz commentedHi,
I checked the codestyle again ... I wasn't aware that the concat rules were changed, I was just getting the hang of the old style.
I added the new patch
Cheers
Comment #11
ThiOz commentedHi,
I saw that the patches weren't made correctly, I made a new one.
cheers
Comment #12
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #13
catchMoving this out of the critical bugs queue - see #607038: Meta issue: fix gaps in code coverage.