getAllWithParams() 공개 정적인 메소드

Lists all webhooks for an app.
public static getAllWithParams ( array $params = [], ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : WebhookList
$params array
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPalRestCall is the Rest Call Service that is used to make rest calls
리턴 WebhookList
예제 #1
0
 /**
  * @dataProvider mockProvider
  * @param Webhook $obj
  */
 public function testGetAll($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(WebhookListTest::getJson()));
     $params = array();
     $result = $obj->getAllWithParams($params, $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }