jasonmccreary / laravel-test-assertions

A set of helpful assertions when testing Laravel applications.
321 stars 34 forks source link

Adds assertRouteUsesMiddleware assertion #23

Closed niveshsaharan closed 4 years ago

niveshsaharan commented 4 years ago

Added a handy method to check if a route uses given set of middlewares and option to check if it uses only the given set of middlewares.

I needed this to use in one of my application so I thought I'd create a pull request and maybe other people can find it useful.

jasonmccreary commented 4 years ago

@niveshsaharan thanks. Just a heads up, it appears your local Git author information doesn't match GitHub. You will want to adjust this so you get "credit" in the commit history.

niveshsaharan commented 4 years ago

Yeah I noticed that this morning. Not sure how did it happen. All good now tho 😉 On 25 Jul 2020, 4:54 PM +0530, Jason McCreary notifications@github.com, wrote:

@niveshsaharan thanks. Just a heads up, it appears your local Git author information doesn't match GitHub. You will want to adjust this so you get "credit" in the commit history. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.