Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static deletion methods and add tests #51

Merged
merged 1 commit into from
Feb 9, 2013
Merged

Conversation

drewish
Copy link

@drewish drewish commented Feb 8, 2013

On #46 iclo pointed we have static delete methods calling into the non-static Recurly_Resource::_delete() causing a fatal error.

I moved the _delete() method up to Recurly_Base and made it static,
and adjusted all the deletion calls accordly. Transaction refunds are
a special case since they're the only place we do a DELETE that
returns a body. Since we had no tests, I spent a bit of time adding
those, which required some changes to pass the mock client through.

On #46 iclo
pointed we have static delete methods calling into the non-static
Recurly_Resource::_delete() causing a fatal error.

I moved the _delete() method up to Recurly_Base and made it static,
and adjusted all the deletion calls accordly. Transaction refunds are
a special case since they're the only place we do a DELETE that
returns a body. Since we had no tests, I spent a bit of time adding
those, which required some changes to pass the mock client through.
@mbeale
Copy link

mbeale commented Feb 8, 2013

Looks like a good update to me. Cleans up some code.

drewish added a commit that referenced this pull request Feb 9, 2013
Fix static deletion methods and add tests
@drewish drewish merged commit 2f8363f into master Feb 9, 2013
@drewish drewish deleted the fix-deletions branch February 9, 2013 00:33
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants