Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / simpletest / src / Form / SimpletestTestForm.php
index f954546eb1605a58c8ff19e28ec208e1c586db31..69f31e4572eb8c394ef378370f0cb563c3e6ebc9 100644 (file)
@@ -10,6 +10,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * List tests arranged in groups that can be selected and run.
+ *
+ * @internal
  */
 class SimpletestTestForm extends FormBase {
 
@@ -71,7 +73,7 @@ class SimpletestTestForm extends FormBase {
     $form['clean'] = [
       '#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.'),
+      '#description' => $this->t('Remove tables with the prefix "test" followed by digits and temporary directories that are left over from tests that crashed. This is intended for developers when creating tests.'),
       '#weight' => 200,
     ];
     $form['clean']['op'] = [
@@ -108,6 +110,10 @@ class SimpletestTestForm extends FormBase {
     ];
 
     $form['tests'] = [
+      '#cache' => [
+        'keys' => ['simpletest_ui_table'],
+        'contexts' => ['test_discovery'],
+      ],
       '#type' => 'table',
       '#id' => 'simpletest-form-table',
       '#tableselect' => TRUE,