You are here

protected function FormSubmitterTest::getFormSubmitter in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php \Drupal\Tests\Core\Form\FormSubmitterTest::getFormSubmitter()
  2. 10 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.

... See full list

File

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

Class

FormSubmitterTest
@coversDefaultClass \Drupal\Core\Form\FormSubmitter @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,
  ])
    ->setMethods([
    'batchGet',
    'drupalInstallationAttempted',
  ])
    ->getMock();
}