Inheritance: implements Payum\Core\Action\ActionInterface, implements Payum\Core\GatewayAwareInterface, use trait Payum\Core\GatewayAwareTrait
Beispiel #1
0
 /**
  * @test
  */
 public function shouldRequestApiCreateButtonPaymentMethodWithExpectedRequiredArguments()
 {
     $gatewayMock = $this->createGatewayMock();
     $gatewayMock->expects($this->at(0))->method('execute')->with($this->isInstanceOf(GetHttpRequest::class));
     $gatewayMock->expects($this->at(1))->method('execute')->with($this->isInstanceOf(CreateButtonPayment::class));
     $action = new CaptureAction();
     $action->setGateway($gatewayMock);
     $action->execute(new Capture(['currency_code' => 'EUR', 'subtotal' => 5]));
 }