php - Symfony functional tests: bypass security -


in our project smartcard auth used, card contains user certificete.
want test controoller, has if (!$this->security->isgranted(...)) throw new accessdeniedexception(); lines.

how can bypass security verifications in functional tests?

there answer: how use authenticated user in symfony2 functional test?

different security section in configuration should used.


Comments

Popular posts from this blog

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -