namespace Drupal\Tests\Core\Form

Same name in other branches
  1. 10 Drupal\Tests\Core\Form
  2. 9 Drupal\Tests\Core\Form
  3. 8.9.x Drupal\Tests\Core\Form
Object name File name Summary
ConfigFormBaseTraitTest core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php Tests Drupal\Core\Form\ConfigFormBaseTrait.
ConfigTargetTest core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php Tests Drupal\Core\Form\ConfigTarget.
ConfiguredTrait core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php Test class for testing ConfigFormBaseTrait.
ConfirmFormHelperTest core/tests/Drupal/Tests/Core/Form/ConfirmFormHelperTest.php Tests Drupal\Core\Form\ConfirmFormHelper.
FormAjaxResponseBuilderTest core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php Tests Drupal\Core\Form\FormAjaxResponseBuilder.
FormBuilderTest core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Tests Drupal\Core\Form\FormBuilder.
FormCacheTest core/tests/Drupal/Tests/Core/Form/FormCacheTest.php Tests Drupal\Core\Form\FormCache.
FormElementHelperTest core/tests/Drupal/Tests/Core/Form/FormElementHelperTest.php Tests the form element helper.
FormErrorHandlerTest core/tests/Drupal/Tests/Core/Form/FormErrorHandlerTest.php Tests Drupal\Core\Form\FormErrorHandler.
FormHelperTest core/tests/Drupal/Tests/Core/Form/FormHelperTest.php Tests Drupal\Core\Form\FormHelper.
FormStateDecoratorBaseTest core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Tests Drupal\Core\Form\FormStateDecoratorBase.
FormStateTest core/tests/Drupal/Tests/Core/Form/FormStateTest.php Tests Drupal\Core\Form\FormState.
FormStateValuesTraitStub core/tests/Drupal/Tests/Core/Form/FormStateValuesTraitTest.php Stub class with trait for testing.
FormStateValuesTraitTest core/tests/Drupal/Tests/Core/Form/FormStateValuesTraitTest.php Tests Drupal\Core\Form\FormStateValuesTrait.
FormSubmitterTest core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Tests Drupal\Core\Form\FormSubmitter.
FormTestBase core/tests/Drupal/Tests/Core/Form/FormTestBase.php Provides a base class for testing form functionality.
FormValidatorTest core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php Tests Drupal\Core\Form\FormValidator.
FormValidatorTestMockInterface core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php Interface used in the mocking process of this test.
MockFormBase core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Interface used in the mocking process of this test.
NonAbstractFormStateDecoratorBase core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Provides a non-abstract version of the class under test.
OptGroupTest core/tests/Drupal/Tests/Core/Form/OptGroupTest.php Tests Drupal\Core\Form\OptGroup.
PrepareCallbackTestForm core/tests/Drupal/Tests/Core/Form/FormStateTest.php A test form used for the prepareCallback() tests.
SubformStateTest core/tests/Drupal/Tests/Core/Form/SubformStateTest.php Tests Drupal\Core\Form\SubformState.
TestForm core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Basic test form with interface implemented.
TestFormInjected core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Basic test form with container injection interface implemented.
TestFormWithPredefinedForm core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php Basic test form with predefined form set.

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