Laravel 5 testing routes -


i want test named routes redirect url supposed to. example:

get('users/profile', ['uses' => 'usercontroller@profile', 'as' => 'users.profile']); 

how can assert users.profile indeed redirecting users/profile , called method indeed usercontroller#profile() ?

if i'm not mistaken, use request class , call request::is('users/profile') if use facade in unit test. otherwise, either instantiate request class or call facade directly.

not sure you're looking for, that's best shot.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -