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

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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -