function FormSubmitterTest::getFormSubmitter
Same name in other branches
- 8.9.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()
- 11.x core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
Return value
\Drupal\Core\Form\FormSubmitterInterface
8 calls to FormSubmitterTest::getFormSubmitter()
- FormSubmitterTest::testExecuteSubmitHandlers in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - @covers ::executeSubmitHandlers
- FormSubmitterTest::testHandleFormSubmissionNoRedirect in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - @covers ::doSubmitForm
- FormSubmitterTest::testHandleFormSubmissionNotSubmitted in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - @covers ::doSubmitForm
- FormSubmitterTest::testHandleFormSubmissionWithResponses in core/
tests/ Drupal/ Tests/ Core/ Form/ FormSubmitterTest.php - @covers ::doSubmitForm
- 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 254
Class
- FormSubmitterTest
- @coversDefaultClass \Drupal\Core\Form\FormSubmitter @group Form
Namespace
Drupal\Tests\Core\FormCode
protected function getFormSubmitter() {
$request_stack = new RequestStack();
$request_stack->push(Request::create('/test-path'));
return $this->getMockBuilder('Drupal\\Core\\Form\\FormSubmitter')
->setConstructorArgs([
$request_stack,
$this->urlGenerator,
])
->onlyMethods([
'batchGet',
])
->getMock();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.