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

shouldSetZeroGatewayActionAsSell() public method

    public function shouldSetZeroGatewayActionAsSell()
    {
        $action = new CaptureAction();
        $action->setGateway($this->createGatewayMock());
        $action->execute($request = new Capture([]));
        $model = $request->getModel();
        $this->assertArrayHasKey('PAYMENTREQUEST_0_PAYMENTACTION', $model);
        $this->assertEquals(Api::PAYMENTACTION_SALE, $model['PAYMENTREQUEST_0_PAYMENTACTION']);
    }