You are here

function simpletest_menu in Drupal 7

Implements hook_menu().

File

modules/simpletest/simpletest.module, line 30
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',
    'weight' => -5,
  );
  $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',
    ),
    'file' => 'simpletest.pages.inc',
  );
  return $items;
}