public function testDelete() { $this->client->addResponse('DELETE', 'https://api.recurly.com/v2/plans/gold/add_ons/ipaddresses', 'addons/destroy-204.xml'); $addon = Recurly_Addon::get('gold', 'ipaddresses', $this->client); $this->assertInstanceOf('Recurly_Addon', $addon); $addon->delete(); }
protected function uri() { if (!empty($this->_href)) { return $this->getHref(); } else { return Recurly_Addon::uriForAddOn($this->plan_code, $this->add_on_code); } }
protected function uri() { if (!empty($this->_href)) { return $this->getHref(); } else { return Recurly_Addon::uriForMeasuredUnit($this->id); } }