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

[5.4] Use Macroable on TestResponse #17726

Merged
merged 2 commits into from
Feb 2, 2017
Merged

[5.4] Use Macroable on TestResponse #17726

merged 2 commits into from
Feb 2, 2017

Conversation

jerguslejko
Copy link
Contributor

@jerguslejko jerguslejko commented Feb 2, 2017

This PR adds Macroable trait to Illuminate\Foundation\Testing\TestResponse.

I often find myself repeating same patterns when testing. In Laravel 5.3, it was possible to create helper methods on TestCase class and continue chaining of the $this->get() call.

This allows us to achieve the same result in Laravel 5.4.

🌵

@jerguslejko jerguslejko changed the title Use Macroable on TestResponse [5.4] Use Macroable on TestResponse Feb 2, 2017
@taylorotwell taylorotwell merged commit 16ec6db into laravel:5.4 Feb 2, 2017
@jerguslejko jerguslejko deleted the macroable-testresponse branch February 2, 2017 13:36
@jerguslejko
Copy link
Contributor Author

😊

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