Payum\Paypal\ExpressCheckout\Nvp\Tests\Action\CaptureActionTest::shouldNotRequestDoExpressCheckoutGatewayActionIfCheckoutStatusOtherThenNotInitiatedSetInModel PHP Method

shouldNotRequestDoExpressCheckoutGatewayActionIfCheckoutStatusOtherThenNotInitiatedSetInModel() public method

    public function shouldNotRequestDoExpressCheckoutGatewayActionIfCheckoutStatusOtherThenNotInitiatedSetInModel()
    {
        $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(Sync::class));
        $gatewayMock->expects($this->at(2))->method('execute')->with($this->isInstanceOf(Sync::class));
        $action = new CaptureAction();
        $action->setGateway($gatewayMock);
        $action->execute(new Capture(array('TOKEN' => 'aToken', 'PAYERID' => 'anId', 'CHECKOUTSTATUS' => Api::CHECKOUTSTATUS_PAYMENT_ACTION_IN_PROGRESS)));
    }