TestingParty08: custom_url_rewrite_inbound()

cwgordon7 - June 29, 2008 - 19:05
Project:Drupal
Version:7.x-dev
Component:base system
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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

#1

catch - August 10, 2008 - 15:53
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

chx - August 17, 2008 - 08:25

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

ThiOz - October 9, 2008 - 15:12
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

spatz4000 - October 9, 2008 - 15:33
Priority:normal» critical

#5

Dries - October 9, 2008 - 20:33

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

#6

ThiOz - October 10, 2008 - 08:34

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

benshell - October 12, 2008 - 02:29

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

ThiOz - October 16, 2008 - 12:31

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

Dries - October 16, 2008 - 21:26
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

ThiOz - October 30, 2008 - 13:04
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

ThiOz - November 6, 2008 - 14:30

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

Anonymous (not verified) - November 13, 2008 - 12:50
Status:needs review» needs work

The last submitted patch failed testing.

#13

catch - October 17, 2009 - 07:36
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.

 
 

Drupal is a registered trademark of Dries Buytaert.