PayPal\Test\Api\CaptureTest::testRefund PHP Method

testRefund() public method

public testRefund ( Capture $obj, $mockApiContext )
$obj PayPal\Api\Capture
    public function testRefund($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(RefundTest::getJson()));
        $refund = RefundTest::getObject();
        $result = $obj->refund($refund, $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }