getClientAuthenticated(); $client->request('GET', '/fr/ticket/ticket/list'); // The controller requires TicketVoter::READ permission. // If no fixtures grant this permission to the test user, // the response will be 403. if (403 === $client->getResponse()->getStatusCode()) { self::markTestSkipped('The test user does not have CHILL_TICKET_TICKET_READ permission. Add ticket permission fixtures to enable this test.'); } self::assertResponseIsSuccessful(); } }