Have you set environments ?

a "dev", "test" "prod" ? Have you different databases ?

In which one are you running your tests ?

And if you drop all DB except the "test", does it works ?



2009/10/27 Adrien Mogenet <adrien.moge...@gmail.com>

>
> Hi everyone,
>
> I'm using fixture to fill my database with 3 fake user accounts, the
> first one is my "demo" account.
> I'm writing my tests using a $browser as sfGuardTestFunctional, which
> signs me in automatically.
>
> The first time I launch my test, my $browser works perferctly and
> shows that my User ID is #1 [OK]
>
> But, second time, fixtures are put within my DB, so my "demo" account
> get the ID #4, but my $browser, which signs in again perfectly, says
> that I have the user ID #3 !!!
>
> This behaviour avoid any other INSERT operation, resulting in
> constraint issues.
>
> Thanks for helping me :-)
>
> --
> Adrien
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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