Welcome Guest, Not a member yet? Register   Sign In
Feature test http responses interfere between tests
#2

It turned out that issue was caused by redirect in controller in post action:
PHP Code:
        return $this->response->redirect(route_to('abc.view'$id)); 
I replaced it with:
PHP Code:
        return redirect()->to(route_to('abc.view'$id)); 
Now all tests pass fine.
Can anybody please explain what is the difference between them and why first one fails? Is it wrong to use it? In browser all works fine.
Reply


Messages In This Thread
RE: Feature test http responses interfere between tests - by Taras - 09-09-2021, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB