Welcome Guest, Not a member yet? Register   Sign In
phpunit testing routes only available after login
#9

Yes, we can test only one request and the response at a time.
When the page gets redirected, the browser will send a new request and gets the page you see.

So if you want to test the page, you need to send another request in the test.
You need to do what the browser normally does in the test code.
To actually do this is tedious because you must write the code to make the state like the session state, etc., the same. Therefore, I don't recommend it.
Reply


Messages In This Thread
RE: phpunit testing routes only available after login - by kenjis - 08-07-2023, 02:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB