You are here

function error_test_menu in SimpleTest 7

Implement hook_menu().

File

tests/error_test.module, line 6

Code

function error_test_menu() {
  $items['error-test/generate-warnings'] = array(
    'title' => 'Generate warnings',
    'page callback' => 'error_test_generate_warnings',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['error-test/generate-warnings-with-report'] = array(
    'title' => 'Generate warnings with Simpletest reporting',
    'page callback' => 'error_test_generate_warnings',
    'page arguments' => array(
      TRUE,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['error-test/trigger-exception'] = array(
    'title' => 'Trigger an exception',
    'page callback' => 'error_test_trigger_exception',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['error-test/trigger-pdo-exception'] = array(
    'title' => 'Trigger a PDO exception',
    'page callback' => 'error_test_trigger_pdo_exception',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}