PayPal\Test\Api\InvoiceTest::testRecordRefund PHP Method

testRecordRefund() public method

public testRecordRefund ( Invoice $obj, $mockApiContext )
$obj PayPal\Api\Invoice
    public function testRecordRefund($obj, $mockApiContext)
    {
        $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(true));
        $refundDetail = RefundDetailTest::getObject();
        $result = $obj->recordRefund($refundDetail, $mockApiContext, $mockPayPalRestCall);
        $this->assertNotNull($result);
    }