Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Define a menu item without an access callback and with a permission as the access argument. Check that users with that permission can access the page and without it can't access.
Comment | File | Size | Author |
---|---|---|---|
#7 | menu_default_access_callback_7.patch | 2.67 KB | mikey_p |
#5 | menu_default_access_callback_5.patch | 3.14 KB | mikey_p |
#1 | menu_default_access_callback_1.patch | 3.35 KB | mikey_p |
Comments
Comment #1
mikey_p CreditAttribution: mikey_p commented(trying to think of something witty to say for my first test)
After this, we should rename hook_menu.module to reflect the standards for mock module names. See #320363: Rename mock modules.
Comment #3
lilou CreditAttribution: lilou commentedSee: #335122: Test clean HEAD after every commit and http://pastebin.ca/1258476
Comment #4
catchWe no longer have phpdoc for setUp(), getInfo() or tearDown()
http://drupal.org/node/325974
Comment #5
mikey_p CreditAttribution: mikey_p commentedNo more comments for getInfo(), setUp().
Comment #6
catchNo longer applies - hook_menu.module is now menu_test.module
Comment #7
mikey_p CreditAttribution: mikey_p commentedDoh, I filed the issue to rename the mock module!
Try again...
Comment #9
mikey_p CreditAttribution: mikey_p commentedretest
Comment #11
bradfordcp CreditAttribution: bradfordcp commentedDuplicate of #296292: Menu access callbacks need a test
Code from mikey_p has been rolled in there....