2013-05-10 84 views
1

在我們的項目中智能卡身份驗證時,其中卡包含用戶certificete。
我想測試我的控制器,但它有一些if (!$this->security->isGranted(...)) throw new AccessDeniedException();行。Symfony的功能測試:繞過安全

如何繞過功能測試中的所有安全驗證?

+0

可能的重複[如何在Symfony2功能測試中使用經過身份驗證的用戶?](http://stackoverflow.com/questions/6535873/how-to-use-an-authenticated-user-in-a-symfony2 -功能測試) – gronostaj 2017-01-04 16:23:20

回答