1

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?

Dmitry
  • 7,457
  • 12
  • 57
  • 83
  • Possible duplicate of [How to use an authenticated user in a Symfony2 functional test?](http://stackoverflow.com/questions/6535873/how-to-use-an-authenticated-user-in-a-symfony2-functional-test) – gronostaj Jan 04 '17 at 16:23

1 Answers1

0

There is an answer: How to use an authenticated user in a Symfony2 functional test?

Different security section in configuration should be used.

Community
  • 1
  • 1
Dmitry
  • 7,457
  • 12
  • 57
  • 83