Payum\Paypal\ExpressCheckout\Nvp\Tests\Action\PaymentDetailsStatusActionTest::shouldMarkRefundedIfAtLeastOnePaymentStatusPartiallyRefund PHP Method

shouldMarkRefundedIfAtLeastOnePaymentStatusPartiallyRefund() public method

    public function shouldMarkRefundedIfAtLeastOnePaymentStatusPartiallyRefund()
    {
        $action = new PaymentDetailsStatusAction();
        $request = new GetHumanStatus(array('PAYMENTREQUEST_0_AMT' => 12, 'CHECKOUTSTATUS' => Api::CHECKOUTSTATUS_PAYMENT_COMPLETED, 'PAYMENTREQUEST_0_PAYMENTSTATUS' => Api::PAYMENTSTATUS_COMPLETED, 'PAYMENTREQUEST_9_PAYMENTSTATUS' => Api::PAYMENTSTATUS_PARTIALLY_REFUNDED));
        $action->execute($request);
        $this->assertTrue($request->isRefunded());
    }