public function deleteAll() { $result = Webhook::getAll($this->apiContext, $this->mockPayPalRestCall); foreach ($result->getWebhooks() as $webhookObject) { $webhookObject->delete($this->apiContext, $this->mockPayPalRestCall); } }