function FormSubmitterTest::getFormSubmitter
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
- 10 core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
- 9 core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
- 8.9.x core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
Return value
\Drupal\Core\Form\FormSubmitterInterface A mocked instance of FormSubmitter.
8 calls to FormSubmitterTest::getFormSubmitter()
- FormSubmitterTest::testExecuteSubmitHandlers in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - Tests execute submit handlers.
- FormSubmitterTest::testHandleFormSubmissionNoRedirect in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - Tests handle form submission no redirect.
- FormSubmitterTest::testHandleFormSubmissionNotSubmitted in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - Tests handle form submission not submitted.
- FormSubmitterTest::testHandleFormSubmissionWithResponses in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - Tests handle form submission with responses.
- FormSubmitterTest::testRedirectWithNull in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - Tests the redirectForm() method when the redirect is NULL.
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php, line 294
Class
Namespace
Drupal\Tests\Core\FormCode
protected function getFormSubmitter() : FormSubmitterInterface {
$request_stack = new RequestStack();
$request_stack->push(Request::create('/test-path'));
return new StubFormSubmitter($request_stack, $this->urlGenerator, $this->redirectResponseSubscriber, $this->callableResolver);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.