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

getJson() public static method

Gets Json String of Object WebhookEventTypeList
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"event_types":' . WebhookEventTypeTest::getJson() . '}';
    }

Usage Example

 /**
  * @dataProvider mockProvider
  * @param WebhookEventType $obj
  */
 public function testAvailableEventTypes($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(WebhookEventTypeListTest::getJson()));
     $result = $obj->availableEventTypes($mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }