In our project smartcard auth is used, where card contains user certificete.
I want to test my controoller, but it has some if (!$this->security->isGranted(...)) throw new AccessDeniedException();
lines.
How can I bypass all security verifications in functional tests?