Would it be nice to have a new assertRedirectToRoute method for easier checking of redirects? In opposite to assertRedirectTo, the new method would be more robust due to changes in the routes of the application to test.
F.e. if I change the URI in one of the routes (my-route) of my application from /foo/bar/baz to /foo-foo/bar-bar/baz-baz, I would have to modify my test case too:
Would it be nice to have a new
assertRedirectToRoute
method for easier checking of redirects? In opposite toassertRedirectTo
, the new method would be more robust due to changes in the routes of the application to test.F.e. if I change the URI in one of the routes (
my-route
) of my application from/foo/bar/baz
to/foo-foo/bar-bar/baz-baz
, I would have to modify my test case too:to
With the new method:
What do you think? I could make a pull-request for that if you would accept my proposal.