问题 As the title says, I'm building an API with Symfony 5. I have some controllers that require different user permissions that I'd like to test, so I decided to create two users with different roles for testing purpose - ROLE_USER and ROLE_ADMIN . The current code is like this (note, it's not full code, just a dummy example/starting point) ApiTestCase.php <?php namespace App\Tests; use App\Entity\User; use App\Tests\Http\RequestBuilder; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class