Payum\Paypal\ProHosted\Nvp\Tests\Action\CaptureActionTest::shouldRequestApiCreateButtonPaymentMethodWithExpectedRequiredArguments PHP Method

shouldRequestApiCreateButtonPaymentMethodWithExpectedRequiredArguments() public method

    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]));
    }