getJson() public static method

Gets Json String of Object WebhookList
public static getJson ( ) : string
return string
Exemplo n.º 1
0
 /**
  * @dataProvider mockProvider
  * @param Webhook $obj
  */
 public function testGetAll($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(WebhookListTest::getJson()));
     $result = $obj->getAll($mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }