Hi everybody, I'm inexperienced in Testing. I want to Test with the mock() function my fatfree project.
I want to test the routes. based on the F3 document I can use mock().
I try to test a route(get profile info) with the following code.
the response is the user json data if the JWT Token exist or valid. if not it returns an empty json.
I pass a valid token in $token but it doesn't work, it's like the mock() doesn't get the token.
I'm wonder if there is problem with the mock() or something wrong in my code?
thanks in advance.
$f3->mock('Get /profile/get', array(), ['Authorization' => $token]);