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.'),