/** * Tests Services_Paymill_Webhooks->delete() * and cleans up the test web hooks */ public function testDelete() { $webhooks = $this->_webhook->get(); foreach ($webhooks as $webhook) { if (isset($webhook['email']) && $webhook['email'] == $this->_email || isset($webhook['url']) && $webhook['url'] == $this->_url) { $webhook = $this->_webhook->delete($webhook['id']); $this->assertEquals(null, $webhook); } } }
public function getAllHooks() { $this->_initHooks(); return $this->_hooks->get(); }