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

shouldForcePaymentActionSale() public method

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