/**
  * @covers ::submitForm
  */
 function testSubmitForm()
 {
     $this->logger->expects($this->atLeastOnce())->method('info');
     $url = new Url($this->randomMachineName());
     $this->paymentStatus->expects($this->once())->method('delete');
     $this->paymentStatus->expects($this->atLeastOnce())->method('urlInfo')->with('collection')->willReturn($url);
     $form = [];
     $form_state = $this->getMock(FormStateInterface::class);
     $form_state->expects($this->once())->method('setRedirectUrl')->with($url);
     $this->sut->submitForm($form, $form_state);
 }
 /**
  * Returns the title for the edit page.
  *
  * @param \Drupal\payment\Entity\PaymentStatusInterface $payment_status
  *
  * @return string
  */
 public function title(PaymentStatusInterface $payment_status)
 {
     return $this->t('Edit %label', ['%label' => $payment_status->label()]);
 }