Skip to content

Assert response is Symfony RedirectResponse in assertRedirectedTo #56

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

Merged
merged 1 commit into from
May 23, 2018
Merged

Assert response is Symfony RedirectResponse in assertRedirectedTo #56

merged 1 commit into from
May 23, 2018

Conversation

jrhenderson1988
Copy link
Contributor

This is more of a nice to have, rather than an issue.

Currently, assertRedirectedTo checks that the response is an instance of Illuminate\Http\RedirectResponse. This causes tests to fail when returning instances of its parent class, Symfony\Component\HttpFoundation\RedirectResponse.

This PR changes the assertion to check that the response is an instance of Symfony\Component\HttpFoundation\RedirectResponse to allow for instances of either object to be returned.

@taylorotwell taylorotwell merged commit e659526 into laravel:4.0 May 23, 2018
@jrhenderson1988 jrhenderson1988 deleted the fix-assert-redirected-to branch May 23, 2018 20:07
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