Download & Extend

TestingParty08: custom_url_rewrite_inbound()

Project:Drupal core
Version:7.x-dev
Component:base system
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

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

#1

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

#2

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.

#3

Priority:critical» normal
Status:active» needs review

Hi Guys,

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

AttachmentSizeStatusTest resultOperations
custom_rewrite_url_inbound.patch2.43 KBIdlePassed: 7207 passes, 0 fails, 0 exceptionsView details | Re-test

#4

Priority:normal» critical

#5

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

#6

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

#7

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.

AttachmentSizeStatusTest resultOperations
custom_rewrite_url_inbound.patch2.52 KBIdlePassed: 7207 passes, 0 fails, 0 exceptionsView details | Re-test

#8

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

AttachmentSizeStatusTest resultOperations
custom_rewrite_url_inbound_test.patch3.1 KBIdleFailed: Failed to run tests.View details | Re-test

#9

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.

#10

Status:needs work» needs review

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

AttachmentSizeStatusTest resultOperations
custom_url_rewrite_inbound_test.patch3.13 KBIdlePassed: 7204 passes, 0 fails, 0 exceptionsView details | Re-test

#11

Hi,

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

cheers

AttachmentSizeStatusTest resultOperations
drupal_custom_rewrite_url_inbound_test.patch2.58 KBIdleFailed: Failed to apply patch.View details | Re-test

#12

Status:needs review» needs work

The last submitted patch failed testing.

#13

Component:tests» base system
Category:bug report» task
Priority:critical» normal

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