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

getJson() public static method

Gets Json String of Object VerifyWebhookSignatureResponse
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"verification_status":"TestSample"}';
    }

Usage Example

 /**
  * @dataProvider mockProvider
  * @param VerifyWebhookSignature $obj
  */
 public function testPost($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(VerifyWebhookSignatureResponseTest::getJson()));
     $result = $obj->post($mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }