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

[9.x] Added tests for 'throw' and 'throwIf' methods #41966

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

ash-jc-allen
Copy link
Contributor

Hi! When I was putting the PR together today for adding the throw method to the Http facade (#41953), I noticed that there weren't any tests directly testing throw or throwIf on the Response class.

There were some tests that touched the throw method related to retries, but didn't directly test the methods on their own.

So, I've just put a few tests together that directly test the two methods. I don't know if these are needed, but I thought it'd be worth proposing them just in case they could add some value to the test suite 😄

@taylorotwell taylorotwell merged commit c41c1b3 into laravel:9.x Apr 14, 2022
@ash-jc-allen ash-jc-allen deleted the http-throw-tests branch April 14, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants