Download & Extend

TestingParty08: menu access callback default need a test

Project:Drupal core
Version:7.x-dev
Component:menu system
Category:task
Priority:critical
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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.

Comments

#1

Status:active» needs review

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

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

#2

Status:needs review» needs work

The last submitted patch failed testing.

#3

#4

Category:bug report» task
Status:needs review» needs work

We no longer have phpdoc for setUp(), getInfo() or tearDown()
http://drupal.org/node/325974

#5

Status:needs work» needs review

No more comments for getInfo(), setUp().

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

#6

Component:tests» menu system
Status:needs review» needs work

No longer applies - hook_menu.module is now menu_test.module

#7

Status:needs work» needs review

Doh, I filed the issue to rename the mock module!

Try again...

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

#8

Status:needs review» needs work

The last submitted patch failed testing.

#9

Status:needs work» needs review

retest

#10

Status:needs review» needs work

The last submitted patch failed testing.

#11

Status:needs work» closed (duplicate)

Duplicate of #296292: Menu access callbacks need a test

Code from mikey_p has been rolled in there....

nobody click here