we do a regular form login once per webtestcase. that works, but is a
little bit dirty, cause you have to consider the order if the teststep
execution. if anyone knows how to do it better: please share your
thoughts!

BR Stephan


On Jun 18, 8:18 am, oscar balladares <liebegr...@gmail.com> wrote:
> AFAIK, there is no  test support for database driven authentication, yet,
> only 'In Memory' method.
>
> This is a big drawback, IMO.
>
> 2011/6/17 Roger Webb <webb.ro...@gmail.com>
>
>
>
>
>
>
>
> > Hello Everyone,
>
> > I am starting down the road of functional testing with Symfony and am
> > wondering what is considered the "best practice" for simulating
> > authentication.  My app uses form-based authentication.  The cook book
> > contains a piece on simulating HTTP authentication, but I couldn't
> > find anything on form/entity based auth.
>
> > Also, is it best to set up the client in the "setUp" method (ie.
> > create the client, submit the login form and use this client with all
> > of the test cases.
>
> > As always, I appreciate the help.
>
> > Roger
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to