Download & Extend

TestingParty08: menu_get_item finds the appropriate item needs a test

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

Issue Summary

Check whether menu_get_item finds the relevant router item. Create items for the following paths: test, test/test, test/test/%, test/%test and check the following paths: test (matches test), test/1 (matches test/%test), test/1/test (matches test/%test again and passes in test as argument to the page callback), test/test (matches test/test), test/test/test (matches test/test/%). Feel free to replace 'test' in the above with any other string of course.

Comments

#1

Assigned to:Anonymous» Wisif

#4

Assigned to:Wisif» dawehner
Status:active» postponed (maintainer needs more info)

i tryed to create this test but

    //test/1 (matches test/%test),
    //test/1/test (matches test/%test again and passes in test as argument to the page callback),

didn't returned what chx expected. Both returned 'test' as path of the router_item.

i expect i'm doing something wrong

AttachmentSizeStatusTest resultOperations
Test_menu_get_item_0.patch3.82 KBIdleFailed: Failed to apply patch.View details | Re-test

#5

Component:tests» menu system
Category:bug report» task
Assigned to:dawehner» Anonymous
Status:postponed (maintainer needs more info)» needs review

PNR to see what the bot thinks of this patch today.

#6

Status:needs review» needs work

The last submitted patch failed testing.

#7

Priority:critical» normal

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