diff --git a/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestResultsForm.php b/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestResultsForm.php index 80da517..844e9ef 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestResultsForm.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestResultsForm.php @@ -9,12 +9,13 @@ use Drupal\Core\ControllerInterface; use Drupal\Core\Database\Connection; +use Drupal\Core\Form\FormInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Test results form for $test_id. */ -class SimpletestResultsForm extends SimpletestTestForm implements ControllerInterface { +class SimpletestResultsForm implements FormInterface, ControllerInterface { /** * Associative array of themed result images keyed by status. @@ -228,6 +229,12 @@ public function buildForm(array $form, array &$form_state, $test_id = NULL) { /** * {@inheritdoc} */ + public function validateForm(array &$form, array &$form_state) { + } + + /** + * {@inheritdoc} + */ public function submitForm(array &$form, array &$form_state) { $pass = $form_state['values']['filter_pass'] ? explode(',', $form_state['values']['filter_pass']) : array(); $fail = $form_state['values']['filter_fail'] ? explode(',', $form_state['values']['filter_fail']) : array(); @@ -253,7 +260,9 @@ public function submitForm(array &$form, array &$form_state) { $form_state_execute['values'][$class] = 1; } - parent::submitForm($form_execute, $form_state_execute); + // Submit the simpletest test form to rerun the tests. + $simpletest_test_form = new SimpletestTestForm(); + $simpletest_test_form->submitForm($form_execute, $form_state_execute); $form_state['redirect'] = $form_state_execute['redirect']; }