you can do it this way:
...
with('response')->begin()->
isRedirected()->
followRedirect()->
end()->
with('request')->begin()->
isParameter('module', 'myModule')->
isParameter('action', 'myAction')->
end();
Regards,
Christopher.
> -Ursprüngliche Nachricht-
> Von: symfony-users@googlegroups.com [mailto:symfony-
> us...@googlegroups.com] Im Auftrag von RusAlex
> Gesendet: Donnerstag, 12. August 2010 14:18
> An: symfony users
> Betreff: [symfony-users] how can i make a functional Test with is
> Redirected To ?
>
> I want to make a functional test, which similar to this:
> Click edit button and then redirected to my page, and i want to check
> redirected url.
>
> $browser->info('3 - Click Submit on edit keyword')->
> get('/keyword/edit/id/'.$wiki_keyword->getId())->
> info('Click Submit')->
> click('Save')->
> with('response')->begin()->
> isRedirected('module', 'domain')->
> end()
> ;
>
> isRedirected doesnt use any arguments. And always PASSed if being
> redirect
>
> Symfony 1.4.
>
> --
> 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