diff options
Diffstat (limited to 'modules/simpletest/tests/menu_test.module')
-rw-r--r-- | modules/simpletest/tests/menu_test.module | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/simpletest/tests/menu_test.module b/modules/simpletest/tests/menu_test.module index 1e436ee59..ee8f2ea1b 100644 --- a/modules/simpletest/tests/menu_test.module +++ b/modules/simpletest/tests/menu_test.module @@ -173,6 +173,22 @@ function menu_test_menu() { 'context' => MENU_CONTEXT_NONE, ); + // File inheritance tests. This menu item should inherit the page callback + // system_admin_menu_block_page() and therefore render its children as links + // on the page. + $items['admin/config/development/file-inheritance'] = array( + 'title' => 'File inheritance', + 'description' => 'Test file inheritance', + 'access arguments' => array('access content'), + ); + $items['admin/config/development/file-inheritance/inherit'] = array( + 'title' => 'Inherit', + 'description' => 'File inheritance test description', + 'page callback' => 'menu_test_callback', + 'access arguments' => array('access content'), + 'type' => MENU_LOCAL_TASK, + ); + return $items; } |