function simpletest_menu in SimpleTest 7
Same name and namespace in other branches
- 5 simpletest.module \simpletest_menu()
- 6.2 simpletest.module \simpletest_menu()
- 6 simpletest.module \simpletest_menu()
- 7.2 simpletest.module \simpletest_menu()
Implement hook_menu().
File
- ./
simpletest.module, line 26 - Provides testing functionality.
Code
function simpletest_menu() {
$items['admin/config/development/testing'] = array(
'title' => 'Testing',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simpletest_test_form',
),
'description' => 'Run tests against Drupal core and your active modules. These tests help assure that your site code is working as designed.',
'access arguments' => array(
'administer unit tests',
),
'file' => 'simpletest.pages.inc',
);
$items['admin/config/development/testing/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/development/testing/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simpletest_settings_form',
),
'access arguments' => array(
'administer unit tests',
),
'type' => MENU_LOCAL_TASK,
'file' => 'simpletest.pages.inc',
);
$items['admin/config/development/testing/results/%'] = array(
'title' => 'Test result',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'simpletest_result_form',
5,
),
'description' => 'View result of tests.',
'access arguments' => array(
'administer unit tests',
),
'type' => MENU_CALLBACK,
'file' => 'simpletest.pages.inc',
);
return $items;
}