namespace Drupal\KernelTests\Core\Form

Same name in other branches
  1. 9 Drupal\KernelTests\Core\Form
  2. 10 Drupal\KernelTests\Core\Form
  3. 11.x Drupal\KernelTests\Core\Form
Object name File name Summary
ExternalFormUrlTest core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php Ensures that form actions can't be tricked into sending to external URLs.
FormActionXssTest core/tests/Drupal/KernelTests/Core/Form/FormActionXssTest.php Ensures that a form's action attribute can't be exploited with XSS.
FormCacheTest core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php Tests \Drupal::formBuilder()->setCache() and
\Drupal::formBuilder()->getCache().
FormDefaultHandlersTest core/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php Tests automatically added form handlers.
FormValidationMessageOrderTest core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php Tests form validation messages are displayed in the same order as the fields.
TriggeringElementProgrammedTest core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php Tests detection of triggering_element for programmed form submissions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.