Skip to content
Snippets Groups Projects
Commit 983d2eb3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2554267 by asgorobets, justAChris, LoMo: Clean Environment button on...

Issue #2554267 by asgorobets, justAChris, LoMo: Clean Environment button on Simpletest UI should not run test even if tests are selected
parent 82198fee
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -62,6 +62,17 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -62,6 +62,17 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#tableselect' => TRUE, '#tableselect' => TRUE,
'#button_type' => 'primary', '#button_type' => 'primary',
); );
$form['clean'] = array(
'#type' => 'fieldset',
'#title' => $this->t('Clean test environment'),
'#description' => $this->t('Remove tables with the prefix "simpletest" and temporary directories that are left over from tests that crashed. This is intended for developers when creating tests.'),
'#weight' => 200,
);
$form['clean']['op'] = array(
'#type' => 'submit',
'#value' => $this->t('Clean environment'),
'#submit' => array('simpletest_clean_environment'),
);
// Do not needlessly re-execute a full test discovery if the user input // Do not needlessly re-execute a full test discovery if the user input
// already contains an explicit list of test classes to run. // already contains an explicit list of test classes to run.
...@@ -187,18 +198,6 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -187,18 +198,6 @@ public function buildForm(array $form, FormStateInterface $form_state) {
} }
} }
$form['clean'] = array(
'#type' => 'fieldset',
'#title' => $this->t('Clean test environment'),
'#description' => $this->t('Remove tables with the prefix "simpletest" and temporary directories that are left over from tests that crashed. This is intended for developers when creating tests.'),
'#weight' => 200,
);
$form['clean']['op'] = array(
'#type' => 'submit',
'#value' => $this->t('Clean environment'),
'#submit' => array('simpletest_clean_environment'),
);
return $form; return $form;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment