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().

Comments

catch’s picture

Title: Tests needed: path.inc » TestingParty08: custom_url_rewrite_inbound()

#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

chx’s picture

It 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.

ThiOz’s picture

Priority: Critical » Normal
Status: Active » Needs review
StatusFileSize
new2.43 KB

Hi Guys,

Yusuf and i created a test for this function. It hasn't been reviewed yet.

stevenpatz’s picture

Priority: Normal » Critical
dries’s picture

Mmm, testNoPath() doesn't seem to be called anywhere?

ThiOz’s picture

Good 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

benshell’s picture

StatusFileSize
new2.52 KB

I 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.

ThiOz’s picture

StatusFileSize
new3.1 KB

Hi 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

dries’s picture

Status: Needs review » Needs work

1. 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.

ThiOz’s picture

Status: Needs work » Needs review
StatusFileSize
new3.13 KB

Hi,

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

ThiOz’s picture

Hi,

I saw that the patches weren't made correctly, I made a new one.

cheers

Anonymous’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

catch’s picture

Component: tests » base system
Category: bug » task
Priority: Critical » Normal

Moving this out of the critical bugs queue - see #607038: Meta issue: fix gaps in code coverage.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.