I have implemented a listener on the security.interactive_login event to set one session variable that is used all over my app, as advised in Symfony2: After successful login event, perform set of actions. The problem is that the security.interactive_login event is not fired in functional tests (I guess this is logical since there is no actual interactive login). Given this restriction: How can I run functional tests with session variables set upon user login?
I have implemented a listener on the security.interactive_login event to set one session variable
Share
If u use basic authentication you can eventualy manualy fire event handler for testing but i think more proper way is to log in to app throu login form with submiting it with client – event listener should be fired that way.