PayPal\Test\Api\RefundTest::getJson PHP Method

getJson() public static method

Gets Json String of Object Refund
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"id":"TestSample","amount":' . AmountTest::getJson() . ',"state":"TestSample","reason":"TestSample","invoice_number":"TestSample","sale_id":"TestSample","capture_id":"TestSample","parent_payment":"TestSample","description":"TestSample","create_time":"TestSample","update_time":"TestSample","reason_code":"TestSample","links":' . LinksTest::getJson() . '}';
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @dataProvider mockProvider
  * @param Refund $obj
  */
 public function testGet($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(RefundTest::getJson()));
     $result = $obj->get("refundId", $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }
All Usage Examples Of PayPal\Test\Api\RefundTest::getJson