/**
  * @covers ::resumeContextAccess
  *
  * @dataProvider providerTestResumeContextAccess
  */
 public function testResumeContextAccess($expected, $payment_owner_id, $account_id)
 {
     $account = $this->getMock(AccountInterface::class);
     $account->expects($this->atLeastOnce())->method('id')->willReturn($account_id);
     $this->payment->expects($this->atLeastOnce())->method('getOwnerId')->willReturn($payment_owner_id);
     $access = $this->sut->resumeContextAccess($account);
     $this->assertInstanceOf(AccessResultInterface::class, $access);
     $this->assertSame($expected, $access->isAllowed());
 }
 /**
  * @covers ::submitForm
  */
 function testSubmitForm()
 {
     $this->logger->expects($this->atLeastOnce())->method('info');
     $this->payment->expects($this->once())->method('delete');
     $form = [];
     $form_state = $this->getMock(FormStateInterface::class);
     $form_state->expects($this->once())->method('setRedirect')->with('<front>');
     $this->sut->submitForm($form, $form_state);
 }