function FormSubmitterTest::getFormSubmitter

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
  2. 8.9.x core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
  3. 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[[api-linebreak]]
FormSubmitterTest::testHandleFormSubmissionNoRedirect in core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
@covers ::doSubmitForm[[api-linebreak]]
FormSubmitterTest::testHandleFormSubmissionNotSubmitted in core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
@covers ::doSubmitForm[[api-linebreak]]
FormSubmitterTest::testHandleFormSubmissionWithResponses in core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
@covers ::doSubmitForm[[api-linebreak]]
FormSubmitterTest::testRedirectWithNull in core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php
Tests the redirectForm() method when the redirect is NULL.

... See full list

File

core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php, line 266

Class

FormSubmitterTest
@coversDefaultClass \Drupal\Core\Form\FormSubmitter[[api-linebreak]] @group Form

Namespace

Drupal\Tests\Core\Form

Code

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,
    $this->redirectResponseSubscriber,
  ])
    ->onlyMethods([
    'batchGet',
  ])
    ->getMock();
}

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