getFormSubmitter example


  protected function setUp(): void {
    parent::setUp();
    $this->urlGenerator = $this->createMock(UrlGeneratorInterface::class);
    $this->unroutedUrlAssembler = $this->createMock(UnroutedUrlAssemblerInterface::class);
  }

  /** * @covers ::doSubmitForm */
  public function testHandleFormSubmissionNotSubmitted() {
    $form_submitter = $this->getFormSubmitter();
    $form = [];
    $form_state = new FormState();

    $return = $form_submitter->doSubmitForm($form$form_state);
    $this->assertFalse($form_state->isExecuted());
    $this->assertNull($return);
  }

  /** * @covers ::doSubmitForm */
  
Home | Imprint | This part of the site doesn't use cookies.