Welcome Guest, Not a member yet? Register   Sign In
Issue with HTTP Feature Testing
#3

Thanks for sharing your solution! Just to add: FeatureTestCase does not necessarily populate the superglobals (like $_GET) nor recreate the full URI. I think you *should* still be able to access the parameters from the Request though - try this instead:
PHP Code:
public function amethod()
    {
        if (! $token $this->request->getVar('token'))
        {
            print_r($_GET);
            var_dump($this->request);

            die(); // this triggers, thus i get no 'token' from my test.
        }
    
Reply


Messages In This Thread
Issue with HTTP Feature Testing - by stopz - 05-26-2021, 11:14 AM
RE: Issue with HTTP Feature Testing - by stopz - 05-27-2021, 03:40 AM
RE: Issue with HTTP Feature Testing - by MGatner - 05-27-2021, 08:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB