Category: symfony-http-client

How to test a lexik_jwt_authentication protected API using http_client? [closed]

I am writing some functional test and looks like the client can’t find the controller for the route, this is the code for my test: $response = static::createClient()->request( ‘POST’, ‘/api/login_check’, [ ‘body’ => [ ‘username’ => ‘username’, ‘password’ => ‘secret123!#’…