Inheritance: implements Payum\Core\Action\ActionInterface, implements Payum\Core\GatewayAwareInterface, use trait Payum\Core\GatewayAwareTrait
Beispiel #1
0
 /**
  * @test
  */
 public function shouldExecuteDoVoidIfTransactionIdSet()
 {
     $gatewayMock = $this->createGatewayMock();
     $gatewayMock->expects($this->exactly(2))->method('execute')->withConsecutive(array($this->isInstanceOf(DoVoid::class)), array($this->isInstanceOf(Sync::class)));
     $action = new CancelAction();
     $action->setGateway($gatewayMock);
     $request = new Cancel(array('TRANSACTIONID' => 'theId'));
     $action->execute($request);
 }