1 simpletest.pages.inc simpletest_test_form_submit($form, &$form_state)

Run selected tests.

File

core/modules/simpletest/simpletest.pages.inc, line 62
Page callbacks for simpletest module.

Code

function simpletest_test_form_submit($form, &$form_state) {
  $tests_list = array_keys(array_filter($form_state['values']['tests']));
  if (count($tests_list) > 0) {
    $test_id = simpletest_run_tests($tests_list, 'backdrop');
    $form_state['redirect'] = 'admin/config/development/testing/results/' . $test_id;
  }
  else {
    backdrop_set_message(t('No test(s) selected.'), 'error');
  }
}