Support the ongoing development of Laravel.io →

d3orn

Joined 10 Mar 2014

Statistics

Threads 2
Replies 4
Solutions 0
Articles 0
posted 10 years ago

assertRedirectToRoute

I created a test for users.store and I wanted to test if I get redirected to users.index if everythi...

0 Likes
7 Replies
posted 10 years ago

Auth and testing

Bascily everything is working up to the point where I want to get the Auth::user()->id check the...

0 Likes
1 Replies
Solved
replied 10 years ago

assertRedirectToRoute

I am starting to believe there is something wrong with my phpunit.xml file

0 Likes
replied 10 years ago

assertRedirectToRoute

I have two tests because if validation fails I should get redirected differently. And since I mock...

0 Likes
replied 10 years ago

assertRedirectToRoute

Thank you! I will look into it but they way you suggest to test store without moking users->creat...

0 Likes
replied 10 years ago

assertRedirectToRoute

//routes.php Route::resource('users' , 'UsersController'); //Controller public function store(){ $...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.