I'm here today because I'm doing my functionnal tests for my symfony2 application and, I have a little problem : I can login the TestUser for my tests (passing server argument during the client creation), but when i just want to access to my User Object (by my tests, in controllers), he is empty.
It is logical because I don't create the object passing by the login page but I didn't find the issue for this problem, can you help me?
(I know I can do an "init function" witch call the login page, submit the login form etc... but i found it preety dirty, because i have to call her before EACH test, so... no)
Thank's ;)