You are here

public function FormBuilderTest::formStateResponseProvider in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::formStateResponseProvider()

Provides test data for testHandleFormStateResponse().

File

core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php, line 168
Contains \Drupal\Tests\Core\Form\FormBuilderTest.

Class

FormBuilderTest
@coversDefaultClass \Drupal\Core\Form\FormBuilder @group Form

Namespace

Drupal\Tests\Core\Form

Code

public function formStateResponseProvider() {
  return [
    [
      'Symfony\\Component\\HttpFoundation\\Response',
      'response',
    ],
    [
      'Symfony\\Component\\HttpFoundation\\RedirectResponse',
      'redirect',
    ],
  ];
}